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 datawarehouse? : Sql dba
Why left join is used in sql?
Is ms sql is free?
What are the constraints available in sql?
Define concurrency control. : Transact sql
What are the types of variable use in pl sql?
What is sql entity?
What are character functions?
what are sequences
What does := mean in pl sql?
What is sql and how does it work?
What does 0 mean in sql?
What does partition by mean in sql?
What is java sql connection?
How do we use distinct statement? What is its use?