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

How many types of objects are there?

987


What is normalization 1nf 2nf 3nf?

1043


ow to bring suspect mode datbase online from scratch

1792


What are trace flags?

1010


While you are inserting values into a table with the insert into .. Values option, does the order of the columns in the insert statement have to be the same as the order of the columns in the table?

965


What is store procedure? How do they work? When do you use?

919


What is the difference between upgrade and migration in sql server?

1060


What is awe?

991


What is an execution plan?

1120


You want to generate a report that is formatted as a chart. Can you use the report wizard to create such a report?

121


Mention the uses of stored procedures.

953


How do I find the sql server version?

1004


What is SQL Azure Federations?

112


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

946


What is subquery? Explain the properties of a subquery?

963