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

select the 3rd maximum salary from sql server database if 4
(just an example In practically I may not know the exact
situation) of the highest salaries are equal.

Answer Posted / sunil nair

SELECT EmpID,Salary from tblSalary a where 3=(select count
(EmpID) from tblSalary b where b.empid=a.empid)

for any RDBMS

Is This Answer Correct ?    2 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I check that whether automatic statistic update is enabled or not?

984


Write a SQL query to make a column as unique?

960


what is a mixed extent? : Sql server administration

1019


What is normalization? Explain its different types?

1037


explain the storage models of olap? : Sql server database administration

878


What is the significance of master, tempdb and model databases?

1021


How do you use a subquery to find records that exist in one table and do not exist in another?

988


Explain the truncate command? : SQL Server Architecture

1091


Distinguish between nested subquery and correlated subquery?

972


How you can move data or databases between servers and databases in sql server?

995


Describe the functionalities that views support.

1049


Name three of the features managed by the surface area configuration tool? : sql server security

943


Which tcl commands are available on the sql server?

1015


How to execute function in stored procedure sql server?

1043


What is 2nf in normalization?

943