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
Give main differences between "Truncate" and "Delete".
What is the synonym of join?
Tell me what is use of except clause? How it differs from not in clause?
What are the acid properties?
my name is sejal I have cleared the sbi clerk exam. I am BCA graduate My favorite subject RDBMS Relational database management system. so please send me rRDBMS related interview questions
What is service broker?
Do you know the isolation level that sql server support?
What are logical/boolean operations in ms sql server?
Describe how to use the linked server?
Explain datetimeoffset data type in sal server 2008?
How to count groups returned with the group by clause in ms sql server?
In which format does an image save in SQL Server database ?
Define self join?
What does null mean?
What is the difference between stored procedure and user defined functions?