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 / kavitha n
Create Table Missingsquence ( Num Number);
sql > select Num from Missingsquence ;
Missingsquence
--------------
1
5
7
SELECT LEVEL num
FROM DUAL
CONNECT BY LEVEL <= 7
MINUS
SELECT num
FROM missingsquence;
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
What is scalar function in sql?
What is left join in postgresql?
what are the different tables present in mysql? : Sql dba
explain the difference between bool, tinyint and bit. : Sql dba
What is a temp table?
Is primary key is clustered index?
How many clustered indexes can you have?
Why cannot I use bind variables in ddl/scl statements in dynamic sql?
what is transaction? : Sql dba
How many types of sql are there?
What is scalar and vector?
What do you know by pl/sql cursors?
What are the different tcl commands in sql?
What is the best sql course?
How many primary keys can a table have?