Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / kotravel. b
SELECT MAX(SAL) FROM EMPLOYEE WHERE SAL<(SELECT MAX(SAL)
FROM EMPLOYEE);
THIS will surly give 2^nd max sal ok this correct ans ok....
| Is This Answer Correct ? | 85 Yes | 13 No |
Post New Answer View All Answers
table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10
what are date and time data types? : Sql dba
What are the sql aggregate functions?
What is indexes?
what is union? : Sql dba
What is AUTH_ID and AUTH_USER in pl/sql ?
Is sql a oracle?
What is pragma in sql?
how can we know the number of days between two given dates using mysql? : Sql dba
How run sql*plus commands that are stored in a local file?
What are the different sql languages?
What does count (*) do in sql?
What is multiple partition?
What does desc stand for?
what is the difference between a having clause and a where clause? : Sql dba