adspace


can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com

Answer Posted / swapnl

select max(sal) from emp_det where sal not in (
select max(sal) from emp_det);

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we do dml on views?

1039


How can we solve concurrency problems?

1123


How can I check that whether automatic statistic update is enabled or not?

1113


How do I start sql server 2017?

1017


How to remove duplicate rows from table except one?

1091


If any stored procedure is encrypted, then can we see its definition in activity monitor?

1073


How efficient you are in oracle and SQL server?

1258


do you know how to configure db2 side of the application? : Sql server database administration

1125


Can one drop a column from a table?

1091


How raid can influence database performance?

1119


How do I create a trace in sql server?

1121


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1200


List the ways in which dynamic sql can be executed?

1088


What are wait types?

1251


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1300