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
how you can configure a running aggregate in SSRS?
how do you test proper tcp/ip configuration windows machine? : Sql server database administration
List the advantages of using stored procedures?
How to concatenate two binary strings together?
wat wil hapn if we give the both read and deny read permission to user?
what is denormalization? : Sql server database administration
How can you find out how many rows returned in a cursor?
How to create a simple table to test triggers in ms sql server?
How can we improve performance by using SQL Server profiler?
What are the different types of upgrades that can be performed in sql server?
What is dbcc updateusage?
Does a sql server 2005 select statement require a from?
What is a covering index?
Why do we use stored procedures in sql server?
Detail about the hardware which is supported by SQL server?