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 loop in pl sql?
how many groups of data types? : Sql dba
What is keys and its types?
what is a field in a database ? : Sql dba
what are the advantages of sql ? : Sql dba
Is grant a ddl statement?
Is drop table faster than truncate?
What is mdb stand for?
When sql appeared?
Is it possible to create the following trigger: before or after update trigger for each row?
What is use of trigger?
Is sql developer case sensitive?
What is the difference between view and stored procedure?
Why is sql better than hql?
How do I find duplicates in the same column?