Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / niladri saha(oracle apps consu
SELECT EMP_NAME EmployeeName, SAL Salary
FROM EMP
WHERE SAL =
( SELECT SAL
FROM
(
SELECT
DISTINCT SAL
FROM EMP
ORDER BY SAL DESC
)
WHERE ROWNUM=2
);
This Query will list all the employees, having second
highest salary.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I quit sql?
what is the difference between rownum pseudo column and row_number() function? : Sql dba
What is the maximum size of sqlite database?
What are the types of subqueries?
Can we insert data into materialized view?
Where do we use pl sql?
What is the basic structure of an sql?
What is pragma in pl sql?
Why is %isopen always false for an implicit cursor?
Can unique keys be null?
i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5
I need a function for a train ticket reservation please answer it thanks in advance
Write a sql query to find the names of employees that begin with ‘a’?
What is package in pl sql?
What is full form of rtm?