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
what is transaction? : Sql dba
Is sql similar to python?
How do you know if a relationship is 2nf?
How many types of privileges are available in sql?
what is data manipulation language? : Sql dba
What are the built in functions of sql?
What is a schema sql?
what is a cursor? : Sql dba
what are the advantages a stored procedure? : Sql dba
What is the current version of sql?
What is normalization in a database?
Is sql open source?
What are the different operators available in sql?
what happens if you no create privilege in a database? : Sql dba
What is the difference between the conventional and direct path loader? : aql loader