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
Explain the microsoft sql server delete command? : SQL Server Architecture
What is a subquery in a select query statement in ms sql server?
how would you improve etl (extract, transform, load) throughput?
Which is the main third-party tool used in sql server?
What does man by sql wildcard characters in sql server?
How do we Backup SQL Azure Data?
What is tablesample?
What is difference between views and stored procedures?
How to create a trigger for insert only?
How many categories of functions based their return modes?
What is the difference between a function and a trigger?
Explain syntax for dropping triggers?
Are null values the same as that of zero or a blank space?
When is the use of update_statistics command?
What are the purpose of Normalisation?