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
what happens if null values are involved in expressions? : Sql dba
What is normalisation in sql?
Which is better stored procedure or query?
What are the types of sql commands?
What is column?
What are stuff and replace function?
how can we destroy the session, how can we unset the variable of a session? : Sql dba
What is denormalization in a database?
What is difference between sql and oracle?
What is procedure explain with example?
Define join and name different types of joins?
what are dynamic queries in t-sql? : Transact sql
What is the difference between a query and a report?
How does rowid help in running a query faster?
Describe different types of general function used in sql?