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

Answer Posted / vivek dwivedi

Select max(salary) from file where salary not in (select max(Salary) from file)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are necessary keywords to code message subfile?

1165


how to validate input values in display file ?

754


how you get the relative record in a subfile in which cursor is located?

723


How can we change the uppercase to Lowercase in RPG?

1017


what is sflpag and sflsiz ?

2571






what is rpg ?

1069


how many printer files maximum can be used in single rpg program?

786


how to get the cursor position?

821


how many files can be defined in f specs?

1648


what is the purpose of ovrdta and ovrata keywords ?

1008


what is the maximum number of parameters allowed in rpg?

1177


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

654


what are all the contents of subfile?

1124


What is RETURN CURSER LOCATION in subfile?

1171


the maximum number of subfiles that can defined in a rpg program for one display file is ___ .

2547