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

Why use truncate instead of delete?

992


Write a query to find the names of users that begin with "um" in sql?

972


What is primary key and foreign key?

947


How do I view a sql trace file?

1006


What is the difference among union, minus and intersect?

982


What is constant in pl sql?

1005


what is acid property in database? : Sql dba

1010


Explain how you can copy a file to file content and file to pl/sql table in advance pl/sql?

991


What is the benefit of foreign key?

1009


What is meant by <> in sql?

940


What is data abstraction in sql?

1011


Show the two pl/sql cursor exceptions.

1167


What is #table in sql?

1068


What is file based approach?

924


What is package in pl sql with an examples?

1020