Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / abhay
Select Max(Sal)
From Emp E
Where E.Sal < (Select Max(Sal) From Emp)
| Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What is rename in sql?
What are the topics in pl sql?
What are pl sql procedures?
What are the possible values that can be stored in a boolean data field?
How to fetch values from testtable1 that are not in testtable2 without using not keyword?
What is the left table in sql?
How to get unique records from a table?
What is file based approach?
Can we use having without group by in sql?
how to show all tables with 'mysql'? : Sql dba
which command using query analyzer will give you the version of sql server and operating system? : Sql dba
difference between anonymous blocks and sub-programs.
Which are the different types of indexes in sql?
Is pl sql and postgresql same?
what is “go” in t-sql? : Transact sql