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 a query to find five highest salaries from EMP table.
(there is a column SALARY)

Answer Posted / sarath

select ename,sal,SAlrank from(select ename,sal,dense_rank()
over(order by sal desc) Salrank from emp)
where salrank <=5

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is trigger in sql? Explain

941


What is an exception in PL/SQL? What are the two types of exceptions?

1192


what is 'mysqladmin' in mysql? : Sql dba

972


How many commands are there in sql?

971


Is time a data type in sql?

852


How to rename a column in the output of sql query?

1000


What is the difference between numeric and autonumber?

939


Explain the difference between 'between' & 'and' operators in sql

945


What are different functions in sql?

897


What is the primary use of normalization?

941


Can we call stored procedure in function?

903


How do I run a sql query?

968


What is cursor explain with example?

922


Is sqlite good enough for production?

948


What does select top 1 do in sql?

1000