suppose we have values like 1 5 7 in a colum.Now we want
numbers like(2 3 4 6) that exists between 1 5 7.How can we
do this using sql query??

Answer Posted / ajitnayak

select rownum
from dual
connect by level <= (select max(a) from mising_values)
minus
select * from mising_values;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain clause in sql?

749


What is synchronized subquery?

824


What is a sql profiler?

770


What is a heap in sql?

722


What is the unique index?

726






What is difference between nchar and nvarchar?

695


table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

3719


How do you take the union of two tables in sql?

732


What is the mutating table and constraining table?

738


what are all different types of collation sensitivity? : Sql dba

710


What is the meaning of disabling a trigger?

826


What are all the ddl commands?

860


How do you modify a table in sql?

802


Is truncate ddl or dml?

752


What is a data manipulation language?

747