what is syntex second or third highest salary.
thanks & Regards
Dhirendra sinha
Answer Posted / dipti saxena
select sal,rownum from (select sal from emp
order by sal desc)
where rownum<=3
MINUS
select sal,rownum from (select sal from emp
order by sal desc)
where rownum<=1
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Explain filtered indexes benefits?
Can we insert data into a view?
Give me a SQL Query to find out the second largest company?
What is join and name different type of joins?
What are the types of lock supported by ?
OPTIMIZATION OF SP,CURSOR,TRIGGERS
How to remove duplicate rows from table except one?
What are the different types of upgrades that can be performed in sql server?
How to use linked server?
Differentiate between mongodb vs. Sql server?
Explain where clause?
What type of locking occurs during the snapshot generation? : sql server replication
Explain the properties of sub-query in sql server?
What are the functions in sql server?
Where can you add custom error messages to sql server?