how to find the second highest salary from emp table?
Answer Posted / radha sri seshu
second method is
select sal from emp e1 where 2=(select count(distinct(sal))
from emp e2 where e1.sal<=e2.sal);
| Is This Answer Correct ? | 35 Yes | 22 No |
Post New Answer View All Answers
How do you modify a table in sql?
What is difference between stored procedures and application procedures?
What is fmtonly in sql?
What is sql deadlock?
describe mysql connection using mysql binary. : Sql dba
What is the difference between syntax error and runtime error?
What is a common use of group by in sql?
What's the difference between a primary key and a clustered index?
What are the types of dbms?
How much does sql certification cost?
What is a memo field?
What schema means?
State some properties of relational databases?
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
Mention what are different methods to trace the pl/sql code?