how to find the second highest salary from emp table?
Answer Posted / prasanthi
select * from (select rownum r,a.* from (select distinct
sal from emp order by sal desc)a)where r=&i
sql>enter i value(enter manually) 2
| Is This Answer Correct ? | 54 Yes | 62 No |
Post New Answer View All Answers
What is a dirty read sql?
Why is the cursor important?
Explain what is a field in a database and record in a database?
Why we use pl sql?
What is nested table in pl sql?
How do we accept inputs from user during runtime?
Can a composite key be null?
What is pivot query?
What is sharding in sql?
Explain exception handling in pl/sql?
Can you rollback after commit?
How do you select unique values in sql?
What is the largest value that can be stored in a byte data field?
What are sql objects?
What are dml commands?