write the SQL statement to retrieve the 2nd Highest salary
ammount(File Name="EMPLOY",Field Name="SALARY")

Answer Posted / sandeep

select top 1 salary from employee where salary<(select top 1 salary from employee order by salary desc) order by salary desc

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are various techniques to pass parameters from one program to another?

1052


What are the different opcodes used for file operation on a subfile in a rpg pgm?

1103


what is the purpose of ovrdta (override data) keyword?

1075


hi guys i am new for sqlrpgle, please suggest me good websites and theory and coding. plz plz its very urgent.

2132


in conjunction with what other keyword must ovrdta and ovrata be used?

925






when are the referential constraints executed?

636


in which specification the report layout can be defined?

984


define a output queue?

942


can you have multiple key lists for a single file ?

997


Difference Between Call & Sbmjob?

778


What is the difference between crtdupobj and copyf?

687


what is maximum number of arrays allowed in rpg?

1189


what does vldcmdkey means?

819


what is a physical file?

1009


What is difference between rename and prefix?

585