how to calcuate the second highest salary of he employee
Answer Posted / hari krishna j
SELECT A.SAL FROM EMP_TAB A
WHERE 1=(SELECT COUNT(*) FROM EMP_TAB B
WHERE B.SAL > A.SAL)
Change value of 1 if
0 - First heighest sal
1 - Second " "
2 - Third heighest sal
.
.
.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Explain ttitle and btitle.
What is identity column in sql server?
What are tables and fields?
What can you do with pl sql?
Can procedure in package be overloaded?
What is an escape character in sql?
What is the location of pre_defined_functions.
Is sql harder than python?
what are the advantages of sql ? : Sql dba
What is composite primary key in sql?
What is sap sql?
How do I partition a table in sql?
what is column? : Sql dba
What will you get by the cursor attribute sql%found?
Which sorts rows in sql?