How to find the second largest salary in the emp database and
also How to find 3rd,4th and so on ........ in the emp database

plz mail the answer @ mak2786@gmail.com

Answer Posted / prafulla borade

SELECT MAX(VCRG_ID) FROM dbo.TRN_VEHICLE_CARGO WHERE VCRG_ID< (SELECT MAX (VCRG_ID) FROM dbo.TRN_VEHICLE_CARGO)

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an execution plan?

564


What is a rollup clause?

543


What are the differences between “row_number()”, “rank()” and “dense_rank()”?

535


What is the maximum size of a row in sql server?

524


what is dbcc? : Sql server database administration

519






What happens if strings are casted into wrong code pages in ms sql server?

562


What is the difference between join and inner join?

537


Where are stored procedures in sql server?

564


How to view the error log for any specific instance? : sql server database administration

577


Explain having clause and where clause?

573


What is updatable resultset?

514


How can windows applications connect to sql servers via odbc?

582


What is scalar user-defined function?

546


What is the use of nvl work?

561


How to display a past time in days, hours and minutes?

568