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 ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are members?

610


how to read database records without locking them?

1143


What is binder language ?

1367


how can I automatically refresh a web page?

634


what is the difference between packed decimal and zoned decimal?

2257






Write a CL program which will run a batch job at 1 am every night

675


Difference Between Ca & Cf?

704


how to toggle between single line and multi - line display of a particular record in a subfile?

1088


how would you design the process for a nightly, high volume check producing process that needs to select only records that are flagged to be processed?

943


In RPG How to read a records from a file without using read opcodes?

968


records can be read/update/deleted with which file?

639


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

612


what is the favicon.ico request that my site receives now and then?

646


what keyword must be used with protect keyword ?

1131


explain the purpose of keep and assume keywords?

1065