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 / sumit

declare i number :=1;

begin
a number;
while (i<=100) loop
select num from table into a where num=i;
If a is null then dbms_output.put_line(i);
i:=i+1;
end loop;
end;

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many clustered indexes can be created on a table?

1073


What are the benefits of stored procedures?

1058


What is nvl?

1061


Why should I use postgresql?

1010


How do I view a procedure in sql?

962


How sql query is executed?

1127


What are sql queries used for?

1023


Which are the different types of indexes in sql?

1054


Can variables be used in sql statements?

1028


How does sql*loader handles newline characters in a record? : aql loader

1041


who introduced sql?

1009


Why we use sql profiler?

953


How do I tune a sql query?

971


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

1096


what is a materialized view? : Sql dba

1059