write the query for find the top 2 highest salary in sql
server
Answer Posted / pari
select max(sal) from emp
where sal !=(select max(sal) from emp);
Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
Differentiate between ms sql server reporting services vs crystal reports?
What is field in algebra?
Do you know what are the steps to process a single select statement?
What is the difference between ddl,dml and dcl commands?
What are the tables in sql?
What is store procedure? When do you use?
How do I find query history in sql server?
How can you manage sql azure security?
How to connect to a sql server using odbc_connect()?
Explain about merge replications?
What are the options which must be set to allow the usage of optimistic models?
Explain temporary table vs table variable by using cursor alternative?
What is Sqlpaging in SqlServer 2005 ?
Difference between group by clause and having clause in SQL?
What is the difference between executequery () and executeupdate ()?