Answer Posted / kishore.p
select top 1 * from tblemp b where b.empsal not in(select
top n-1 empsal from tblemp e)
note:- here the n will be the number of only row you would
like to display.
here in the above case n=2 i.e., n-1=1
so this will be the querry:
select top 1 * from tblemp b where b.empsal not in(select
top 1 empsal from tblemp e)
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is there a 64 bit version of ssms?
What is substitution variable?
Why do we use joins?
Why do we need cursors in pl sql?
What are crud methods?
List different type of expressions with the example.
Does sql require a server?
Explain commit, rollback and savepoint.
Explain spool.
What is primary key secondary key alternate key candidate key?
Explain the the update statement in sql?
What is the difference between a subquery and a join?
Can 2 queries be executed simultaneously in a distributed database system?
Why truncate is faster than delete?
how can we find the number of rows in a table using mysql? : Sql dba