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

Answer Posted / kamal

hi,
select max(salary) from empfile where salary <(select max
(salary from empfile))

or

select salary from empfile a 2=(select count(salary) from
from empfile b where b.salary>=a.salary)

Is This Answer Correct ?    24 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Apart from opening of a file do we have any other use of USROPN?

1037


how do handle file exception/error?

743


can we define multi-dimensional arrays in rpg ?

1069


using dfu, user will be able to ___________ from physical file?

654


what if my system I runs with system value qccsid 65535?

702






What Is Ddm ?

1189


What Is Default Data Type (if You Define Decimals '0') In Physical File?

1337


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

1234


how does union file maintains record formats?

722


what does check opcode do ?

1237


what is overlay?

778


how can database records be read without lock ?

1370


how can a message from a message file appear as a constant on the screen?

1090


what is the difference between sflclr and sflinz?

1218


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

1243