Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / sandeep
select top(1) a.name
from
(
select top(2) name,salary
from
employee
order by salary desc
)a
order by a.salary asc
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the components of sql?
How exception handling is done in advance pl/sql?
Is a table valued function object?
Hi how to import oracle sequence in Informatica? Please write stored procedure code that will import oracle sequence in Informatica SP transformation as per below scenario Oracle table product list Pro_id, pro_name 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights Now a new flat file with new product list needs to be added to oracle table product list with oracle sequence. flat file product Prono,pro_name, 1, 20 watt tube light 2, 30 watt tube light & target should be like 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights. 104, 20 watt tube light 105, 30 watt tube light thks reg suvarna joshi suvarnaatsuvarna@rediffmail.com
What is difference between stored procedures and application procedures?
Do triggers have restrictions on the usage of large datatypes, such as long and long raw?
Explain raise_application_error.
Show the cursor attributes of pl/sql.
What does varchar include?
what is the difference between a web-garden and a web-farm? : Sql dba
Does user triggers have entry for trigger with compilation errors?
what are numeric data types? : Sql dba
What is primary and foreign key?
Explain how to use transactions efficiently : transact sql
What is cursor in pl sql with examples?