Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

what key word is used when screen is re-display?

1175


what is sflinz and sflrna?

1573


Difference Between Skip Before & Space Before?

1275


Hello, I have created a CMD type object. In one of the fields in Display file , I would like to see All the Source files present by pass the name of Library. Tried using CHoice(Keyword) and Choicepgm on PARM , but doesn't seems to be working. Any help please..

2334


where can you specify an indicator in lokup operation?

1885


What is difference between rename and prefix?

1079


can we use ASCII ,CDUP,SENDPASV commands in SFTP?

3718


what is sflpag and sflsiz ?

3574


which cl command can be used at program execution to redirect the file named in an rpg program?

1240


What is the draw back of Procedures? why we are going to Modules?

1839


What is the maximum number of subfiles that can be specified in a display file?

1985


what is the maximum number of subroutines allowed in rpg?

1845


what is the function of crtdupobj command?

2157


How to Define a Procedure in RPG?

1796


Explain The Keywords Edtcde & Edtwrd?

1449