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

which are the query selection criteria, which can be given in a query?

1172


Explain The Keywords Edtcde & Edtwrd?

1399


What Does 'sr' In Columns 7-8 Of C Specs Mean?

1738


what is term cua , saa?

1608


how can you execute a command from within an rpg program without calling a clp program?

2005


what is the command used to invoke rlu ?

1891


can a join logical file be updated?

1019


how can we run a batch job?

1173


Space & Skip Are Which Level Keywords?

1191


Can any one explain the basic things about RLU and Printer Files and their Definitions for both and why are they used,i'm a newbee so please help me out

3473


which are the member types which seu supports?

1330


what is the function of crtdupobj command?

2073


What is array in as400? What are the types of array?

1114


What Is The Object Type Of Pf, Lf, Printer File & Display File?

1161


if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?

1676