Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

If there are 1 to 100 numbers in a table and in that 100
numbers some 10 numbers are deleted.I want to find out the
missing numbers between 1 to 100 by pl/sql how?

Answer Posted / vishnu

create table test100 (id number);

insert into test100
select level from dual connect by level <=100;

select id from (SELECT rownum id from test100) where id
not in (select ID from(select rownum,id from test100) where id!=decode(id,rownum,rownum+1,rownum));

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to test for null values?

1098


what is the difference between undefined value and null value? : Sql dba

1147


How to fetch values from testtable1 that are not in testtable2 without using not keyword?

1285


What is a data definition language?

1197


What is an invalid partition table?

1067


What is latest version of sql?

1102


How much does a sql dba make? : SQL DBA

990


how to drop an existing table in mysql? : Sql dba

1092


What is the difference between local and global temporary table?

1089


How does stored procedure reduce network traffic?

1066


Why primary key is required?

1046


How would you convert date into julian date format?

1044


The in operator may be used if you know the exact value you want to return for at least one of the columns.

1228


what is oltp (online transaction processing)? : Sql dba

1129


How to raise user-defined exception with custom sqlerrm ?

1181