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 is file access opcodes?

876


what would be the effect on the field where reverse image, underline and highlight display attributes are active ?

1144


what are the three line types in rlu ?

1660


explain the purpose of keep and assume keywords?

1238


what opcode could be used to test an alphanumeric field for all numeric values?

1239






What Is The Error If We Don't Get Login Screen?

777


how can you specify no duplicate key?

799


what is a non-join logical file?

1113


which are control break logic indicators?

727


which are the member types which seu supports?

931


what is scan and xlate?

1259


How to convert a spool file to PDF file in AS400?

832


what is the purpose of the indara keyword?

1254


can a single screen format occupy a screen area above and below a subfile format ?

1150


what are the different opcodes available in rpg for database access ?

992