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 / anish tuladhar

select
distinct salary
from
(
select
DENSE_RANK() over(order by salary desc) as rnk,
modelyr_id_int
from
employee
) a
where
rnk = 4

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How efficient you are in oracle and SQL server?

1163


How to loop through returning rows?

1039


Explain few examples of stored procedure over triggers?

1046


Does windows server 2016 come with sql server?

939


Explain difference between cross join and full outer join?

1012


Does an index slow down updates on indexed columns?

979


What are the extra roles available in msdb? : sql server security

1138


What do you understand by check constraint in sql server?

950


Explain what is row_number function?

1046


How to connect sql server management studio express to sql server 2005 express?

1049


What is compression - row-level and page-level compression?

921


How can I get data from a database on another server?

1001


What is the use of nvl work?

1009


Can a stored procedure call itself or recursive stored procedure? How many levels sp nesting is possible?

970


How many triggers are possible per table?

1104