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 query for fourth maximum salary from employee table

Answer Posted / ajay roy

The Correct answer is ---

select salary from employee aa
where 4=(select count(*)from employee bb
where aa.salary<=bb.salary)

Thanks Elumalai.k

Top Keyword returns the top(first) row not the max record

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define full outer join in sql server joins?

912


How many joins in sql server?

897


Can the “if update (colname)” statement be used in a delete trigger?

943


Can you explain important index characteristics?

935


What is the latest version of microsoft sql server?

960


What is open database communication (odbc)?

1003


How the authentication mode can be changed?

1074


What is sub query and its properties?

916


what is the different types of backups available in sql server? : Sql server database administration

879


can a database be shrunk to 0 bytes, if not, why? : Sql server administration

1115


What is the ‘fillfactor’?

914


Difference between connected and disconnected database in .net with sql server?

1033


What is transaction server explicit transaction?

968


What is “asynchronous” communication in sql server service broker?

958


Explain what role entity and relationship play in an ER diagram.

1016