how to get second highest salary in SQL(as/4000
Answer Posted / deepak
select max(sal) from emp where sal!=(select max(sal) from emp);
| Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
What is dml statement?
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 foreign key in sql with example?
What is data manipulation language?
Explain foreign key in sql?
How to prepare for oracle pl sql certification?
How does postgresql compare to "nosql"?
How much ram can sql express use?
what are the 'mysql' command line arguments? : Sql dba
What are different types of sql commands?
What program will open a mdb file?
What is the difference between null value, zero, and blank space?
Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?
What are the different sql languages?
Which is faster truncate or drop?