How to read 2nd highest sal from EMP table?
Answer Posted / arnab bhui
Using Oracle........
create table emp
( id number(10),
sal numeric(10,5)
);
SQL> select max(sal) from (( select sal from emp ) minus ( select sal from emp where sal >= all ( select sal from emp )));
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What do you mean by SQL injection attack?
Write a program to fetch first 10 records from a file?
How to delete a login name in ms sql server?
Can sql servers link to other servers like oracle?
You want to implement the one-to-many relationship while designing tables. How would you do it?
do views contain data ?
What are the dmvs? : sql server database administration
Which joins are sql server default?
What are the types of user defined functions in sql server?
What is difference between equi join and natural join?
Why we need sql server?
What is inline table-value user-defined function?
Explain transaction server explicit transaction?
Distinguish between commit and rollback?
Can you roll back the ddl statement in a trigger?