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 the two record formats a subfile contain ?

1109


What is dynslt?

780


Difference Between Call & Sbmjob?

770


distinguish between terminating a program through seton lr and return?

561


how do you specify the number of records to roll in a subfile ?

1233






what the purpose of ovrdta, ovrata keywords?

1163


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

1065


A join logical file has how many record formats?

595


What is the as400 called now?

542


what is a program described file in rpg?

1047


what is the purpose of dynslt keyword?

1027


What is the difference between iter and do? We know both are used to execute set of statements repeatedly, but what is the main difference?

548


http default port 80 is used by some other production http service. How can I create an http instance on another port to run cgidev2 and my future cgi developments?

582


How we will get issues on AS/400 technology ? I mean which issue/Defect Tracking tool is using in all companies when any issue comes? Can anybody explain about the work flow of AS/400 project ? plzzz

1153


what is the purpose of putovr (put with explicit override) keyword?

928