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 / sureshramsing@gmail.com

select level from dual connect by level<=100 minus select <column name> from <table name>;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to remove child records without removing master table records...the two having pk,fk relationship?

804


what is a relationship and what are they? : Sql dba

550


What is an invalid partition table?

562


What is sql comments?

648


What do we need to check in database testing?

553






What is a primary key called that is made up of more than one field?

787


What is orm in sql?

533


Are dml statements autocommit?

548


Which are the different character-manipulation functions in sql?

545


Mention what does plv msg allows you to do?

662


What is schema in sql?

510


What is cursor and why it is required?

550


what is a table called, if it has neither cluster nor non-cluster index? What is it used for? : Sql dba

522


What are the syntax and use of the coalesce function?

551


Differentiate pl/sql and sql?

558