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 / prabhjeet singh sethi

select * from
(select rank(salary) over (partition by employee order by salary desc) as top_salary, employee from table
group by employee)
where top_salary = 4

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

John exports information periodically from a microsoft sql server database to an oracle database what is the best way to do this?

920


How do I uninstall sql server 2014?

916


What is resource governor?

952


What is Transparent Data Encryption?

986


Why should one not prefix user stored procedures with ‘sp_’?

1020


How to manipulate data from one table to another table ?

956


How and why use sql server?

989


Explain how does the report manager work in ssrs?

936


How to send a ssrs report from ssis?

174


What is an execution plan? How would you view the execution plan?

1051


What is self contained multi valued query?

983


Can another user execute your local temporary stored procedures?

964


Explain the ways to controlling cursor behavior?

901


How to delete duplicate records based on single column from a table?

1027


do you know how to configure db2 side of the application? : Sql server database administration

1022