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

Answer Posted / elumalai.k

select max(salary)from tablename where salary <(select
max(salary)from tablename)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does Master database contains?

622


What is the bookmark lookup and rid lookup?

564


How to transfer an existing table from one schema to another schema in ms sql server?

504


What is the difference between a primary key and a unique key? Are they the same?

534


What are the new features in sql server 2016?

532






How to use "begin ... End" statement structures in ms sql server?

518


What is sleeping status in sql server?

512


How does index makes search faster?

591


Do you know what is normalization of database? What are its benefits?

552


What are blobs, tables, and Queues? Is SQL is the standard way to query blobs, tables, and queues?

117


What is "scheduled jobs" or "scheduled tasks"?

548


How to count duplicated values in a column in ms sql server?

506


Why I am getting this error when dropping a database in ms sql server?

584


Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.

1957


Write a SQL queries on Self Join and Inner Join.

612