can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com
Answer Posted / tulasi ravi kumar
hi,
my id is ravi106109@gmail.com
select sal from emp a
where 1=(select count(b.sal) from emp b
where a.sal<b.sal) order by sal desc;
and also dileep is write
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
Can we update data in a view?
Which is the main third-party tool used in sql server?
What is difference between rownum and rowid?
Which is faster statement or preparedstatement?
How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?
Explain transaction server isolation?
What are the pros and cons of putting a scalar function in a queries select list or in the where clause?
What is etl - extraction, transformation, and loading?
Explain what is use of dbcc commands?
Write a SQL command to insert and update only a particular field?
What is field in algebra?
Can you explain what is the use of custom fields in report?
Difference between Logical Page and Physical Page in SSRS.
What do you understand by triggers?
You accidentally delete the msdb database what effect does this have on your existing sql databases, and how do you recover?