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...

how to find the second highest salary from emp table?

Answer Posted / ayush

select *
from (select ename,empno,salary,dense_rank()over(order by
salary desc) rank from emp)
where rank =2

Is This Answer Correct ?    19 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba

1163


What is faster join or subquery?

1066


what is self join and what is the requirement of self join? : Sql dba

1191


What is sql character function?

1151


What are sql injection vulnerabilities?

1027


What is schema in sql example?

1278


what does it mean to have quoted_identifier on? : Sql dba

1181


How to change sql*plus system settings?

1110


how do you control the max size of a heap table? : Sql dba

1025


Why is the cursor important?

1079


What are types of joins?

1028


What does data normalization mean?

1028


What is pivot in sql?

973


What is break?

1256


How to get unique records from a table?

1022