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 / dipanshu saini

select level from dual connect by level<=(select max(seq_no) from test_tab)
minus
select seq_no from test_tab;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to delete an existing column in a table? : Sql dba

715


What steps server process has to take to execute an update statement?

705


Can you have more than one key in a database?

684


How do I find sql profiler?

680


What are the different types of tables in sql?

658






What is sqlite format?

810


Do we need to rebuild index after truncate?

699


How does sql store data?

663


what is a database? : Sql dba

808


What is difference between sql function and stored procedure?

679


how to write date and time literals? : Sql dba

698


What does varchar include?

680


Is primary key an index?

711


What is parameter substitution in sql?

752


What is the difference between instead of trigger and after trigger?

694