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
How many sql databases can you have on one server?
How do you determine the current isolation level? : Transact sql
Explain architecture of sql server notification services?
What is a sql statement?
what is the use of set statement in tsql? : Transact sql
Write a sql select query that only returns each name only once from a table?
what are the maximum number of rows that can be constructed by inserting rows directly in value list? : Transact sql
Is join same as left join?
how many ways to get the current time? : Sql dba
How will you distinguish a global variable with a local variable in pl/sql?
How many tables can a sql database have?
How do I view tables in sql developer?
Is there a way to automate sql execution from the command-line, batch job or shell script?
What is the difference between an inner and outer join?
How to fetch alternate records from a table?