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 does one use sql*loader to load images, sound clips and documents? : aql loader

1160


What is the benefit of foreign key?

1006


What is the function that is used to transfer a pl/sql table log to a database table?

986


What is the difference between execution of triggers and stored procedures?

1098


What is oracle sql called?

902


Difference between truncate, delete and drop commands?

1062


How do I create a sql script?

1083


What is set serveroutput on?

1120


How do I start sql from command line?

998


what are the system privileges that are required by a schema owner (user) to create a trigger on a table?

1054


How can we make an if statement within a select statement?

997


What are different categories of sql commands?

1112


what are the 'mysql' command line arguments? : Sql dba

1120


Can you selectively load only those records that you need? : aql loader

1023


How do I remove duplicates in two columns?

1029