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

Explain the properties of a relational table?

1029


What is tempdb in sql server?

988


Explain candidate key, alternate key, and composite key?

1008


How would you add a section to a table?

1061


How to encrypt Strored Procedure in SQL SERVER?

1175


What is policy management?

1007


Sql studio em braces a variety of capabilities, but will I need them all? Is there a simpler product ? : sql server management studio

914


Why use “in” clause in sql server?

1078


What are cursors stored procedures and triggers?

1024


Define inner join in sql server joins?

1064


How to delete a database in ms sql server?

1242


How to list all login names on the ms sql server?

1149


Explain relational data?

931


What is encryption key?

132


Can an entity have two primary keys?

986