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 is overlay?

1189


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

1220


what is term cua , saa?

1689


what is the maximum number of record formats in dspf?

1739


under given circumstances, my cgi should link to another site. How to implement this?

1056


what is the difference between sflclr and sflinz?

1848


what is sflrolval?

1132


. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?

8026


what is elastic and non elastic subrile?

1049


what is procedure prototype and procedure interface.

1304


What are the mandatory keywords of sub file?

1542


what is the disadvantage of using global variable?

1257


give three main purposes of file specification ?

1819


the maximum number of subfiles that can be active for a single file is ____ .

1944


what is a composite key?

1756