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...

how to get second highest salary from a employee table and
how get a 5th highest salary from a employee table?

Answer Posted / dinesh

select * from emp e where
2 =(select count(distinct sal) from emp where e.sal<=sal)
or 5=(select count(distinct sal) from emp where e.sal<=sal);

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can you import .csv file in to sas? : Sas programming

1044


how do you pull data from equifax?tell me the process?

1741


: and & modifiers.

1334


Describe crosslist option in tables statement?

1167


Name few SAS functions?

1041


what other sas products have you used and consider yourself proficient in using? : Sas programming

1054


which features do you use to check the data validations and errors? : Sas-administrator

999


How many ways to overcome a missing values???

2751


If money were no object, what would you like to do?

3129


Describe the ways in which you can create macro variables? : sas-macro

1011


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

1055


How do you specify the number of iterations and specific condition within a single do loop?

1049


How to read an input file in sas?

1092


Name any two sas spawners? : sas-grid-administration

980


How do you debug and test your SAS programs?

1500