write the SQL statement to retrieve the 2nd Highest salary
ammount(File Name="EMPLOY",Field Name="SALARY")
Answer Posted / yogesh
This is correct answer -Try it
SELECT SALARY FROM EMPLOYEE WHERE SALARY < (SELECT MAX
(SALARY) FROM EMPLOYEE) ORDER BY SALARY DESC FETCH FIRST 1
ROW ONLY
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
How can we arrange duplicate records in a file?
what is a physical file?
how to toggle between single line and multi - line display of a particular record in a subfile?
difference between view and index ?
what is the use of sflend keyword?
How to avoid using indicators in ile ?
which type of object is used in db2/400?
records can be read/update/deleted with which file?
what is a non-join logical file?
what does the ovrdbf command do?
in which specification the report layout can be defined?
how do handle file exception/error?
which are the query selection criteria, which can be given in a query?
what is a logical file?
What are the mandatory keywords of sub file?