how to find the second highest salary from emp table?
Answer Posted / barochia dharmesh
select Income from (
select Rank() over(order by Income desc) topRecord, Income
from (select distinct Income from tblName) tbl ) tbl2
where topRecord = 2
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do you rename a table in sql?
Is primary key is clustered index?
What are the benefits of stored procedures?
Is merge a dml statement?
What are sql queries used for?
What is data control language (dcl)?
How do you modify a column in sql?
What is normalisation and its types?
What are tables and fields in the database?
what is the syntax used for partition in tsql? : Transact sql
explain mysql aggregate functions. : Sql dba
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
What is delimiter sql?
How do I run a program in pl sql?
How can I change database name in sql?