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 can you fetch first 5 characters of the string?

1018


How do I write a cron which will run a sql query and mail the results to agroup?

983


What are the triggers associated with image items?

1042


how to load data files into tables with 'mysqlimport'? : Sql dba

1096


What is materialized view in sql?

925


Can we perform dml on view?

1047


Can we use having without group by in sql?

986


What type of database is cloud sql?

1105


What are different methods to trace the pl/sql code?

1123


Which column of the user triggers data dictionary view displays the database event that will fire the trigger?

1028


How is use pl and sql?

1068


What is restrict in sql?

1122


what is a database lock ? : Sql dba

1175


Describe different types of general function used in sql?

1039


What are the different tcl commands in sql?

1179