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

Where the sql database files are stored?

690


How do you modify a table in sql?

800


What is the difference between a database and a relational database?

762


Is primary key an index?

711


What is pl sql in dbms?

692






What are the advantages of sql? Explain

850


What is a sql*loader control file?

788


what are the different type of normalization? : Sql dba

763


What is pl sql architecture?

680


Can triggers stop a dml statement from executing on a table?

800


How many functions are there in sql?

716


What does t sql mean?

702


how to include numeric values in sql statements? : Sql dba

768


What is the size of partition table?

737


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

771