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
What is sql dialect?
What does closing a cursor do?
What is trigger price?
How can I make sql query run faster?
What is secondary key?
Can you rollback after commit?
What is a system versioned table?
What are the different type of joins in sql?
Why do we need a foreign key?
Explain the difference between cursor declared in procedures and cursors declared in the package specification?
what is collation? : Sql dba
What is orm in sql?
Does pl sql work in mysql?
What is the meaning of disabling a trigger?
How do you exit in sql?