Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / sandip
SELECT MAX(SAL) FROM EMPLOYEE WHERE SAL<(SELECT MAX(SAL)
FROM EMPLOYEE);
The correct one is.......
SELECT MAX(SAL) as SAL FROM EMPLOYEE WHERE SAL<(SELECT MAX(SAL)
FROM EMPLOYEE);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain unique key in sql.
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
what is data manipulation language? : Sql dba
What is the sql case statement?
What is aggregate function in sql?
Does sql*plus have a pl/sql engine?
What is a data definition language?
Explain the types of joins in sql?
How do you run a query?
How do I run a sql query?
How many types of index are there?
How to combine two stored procedures in sql?
Can we join same table in sql?
What does := mean in pl sql?
What problem one might face while writing log information to a data-base table in pl/sql?