how to find the second salary?

Answer Posted / m.s.patil

select max(sal) from t1 where sal not in (27777);

27777 is max salary in table

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the grouping functions?

532


What is compression - row-level and page-level compression?

535


When would you use it?

585


What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas

601


Can I run multiple instances of sql server 2000 at the same time on one computer?

608






What will be the value of @@fetch_status if a row that was a part of the cursor resultset has been deleted from the database after the time the stored procedure that opened the cursor was executed?

654


What is the difference between varchar and nvarchar datatypes?

574


Do you know exporting and importing utility?

536


How can I add Reporting Services reports to my application?

91


What is dimension table? : sql server analysis services, ssas

562


Why use identity in sql server?

568


What does indexation mean?

533


What are the export options of ssrs?

126


Explain encryption of entire databases without the need for application changes in sql server 2008?

566


What are the three different part of rdl file explain them?

170