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

what are the disadvantages of cursors? : Sql server database administration

1084


Which operator do you use to return all of the rows from one query except rows are returned in a second query?

1045


What do you understand by recursive stored procedure?

986


Where are stored procedures in sql server?

1127


Recommend an approach to ensuring that all changes in the remote databases synchronize with the SQL Azure database?

128


What are the various editions of sql server 2017 that are available in the market?

940


What is the difference between for trigger and after trigger?

1161


what is normalization? : Sql server database administration

1162


What is BCNF? How is it better than 2NF & 3NF?

1065


What is a dataset and what are the different types of datasets?

141


What happens if we shrink log file in sql server?

1031


how would you write a sql query to compute a frequency table of a certain attribute involving two joins? What changes would you need to make if you want to order by or group by some attribute? What would you do to account for nulls?

1690


List the different types of collation sensitivities in sql server?

1078


How do you set a trace flag in sql server?

1095


Write a SQL query in order to merge two different columns into single column?

1086