write the query for find the top 2 highest salary in sql
server

Answer Posted / arun kumar k s

select Distinct Top 2 Salary from EMP order by Salary desc

Is This Answer Correct ?    111 Yes 59 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the pre-defined functions in the sql server?

695


What do you understand by check constraint in sql server?

648


What is meant by indexing files?

778


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

681


how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A

1416






Explain primary key and foreign key constraints?

705


Explain what are the basic functions for master, msdb, model, tempdb databases?

704


why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it? : Sql server administration

782


What does sql server mean?

693


What is data compression?

735


what is the difference between delete table and truncate table commands? : Sql server database administration

708


What are the types of table?

737


What are the differences between stored procedure and the dynamic sql?

762


Explain database normalization?

873


How efficient you are in oracle and SQL server?

808