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 / sandeep

select top 1 salary from employee where salary<(select top 1 salary from employee order by salary desc) order by salary desc

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the maximum number of record formats in dspf?

1686


different type of cursor?

1050


is there any way I can ease my rpg controls on numeric input fields? How about an input date field?

1116


What is diff between EVAL & MOVE?

1573


what is rpg ?

1644


what is the necessary keyword for non-join logical file?

1829


define the purpose of the iter operation?

1847


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

1989


what is sflpag and sflsiz ?

3442


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

1172


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

1103


what are the basic features of seu?

1196


What are the mandatory keywords of sub file?

1481


how does union file maintains record formats?

1103


when do you explicitly open files and close files in an rpg program?

2061