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

Answer Posted / vijayalaxmi m khot

select max(sal) from emp where sal=(select max(sal) from emp
where sal<(select max(sal) from emp));

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we join two tables without primary key?

605


What is sql service broker?

577


what data regions are and what are the different data regions?

101


When columns are added to existing tables, what do they initially contain?

621


How to return the second 5 rows in ms sql server?

622






Explain steps of normalization?

518


What is self contained scalar sub query?

526


What do you do in data exploration

554


what authentication modes does sql server support? : Sql server database administration

514


What is nested transaction?

528


Mention the different types of triggers?

539


How to connect to SQL Azure Database by using sqlcmd?

110


What is the difference between a view and a stored procedure?

544


Write a Select Query to display title for each group of records, which are collected with Compute Clause? Like titlefield column-A column-B ..... ..... ..... Sum ... titlefield column-A column-B ..... ..... ..... Sum ...

1565


What are the differences between stored procedure and view in sql server?

614