i need department wise top 2 employees salary.which logic
i will use

Answer Posted / arun

Select top(2)* from table order by salary desc

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between microsoft sql and mysql?

513


What is the sql case statement?

581


When can we use the where clause and the having clause?

583


how many tables will create when we create table, what are they? : Sql dba

549


State few characteristics of pl/sql?

569






What is a call statement? Explain with an example.

553


What is autocommit sql?

541


What is break?

622


What is meant by user defined function?

584


What is over () in sql?

531


What is cursor in pl sql?

580


What is cursor status?

766


Does view store data in sql?

540


What is sharding in sql?

566


What is on delete set null?

570