how to find the second highest salary from emp table?
Answer Posted / chiru
select distinct sal from emp e where 2=(select
count(distinct sal) from emp where e1.sal>e.sal) order by
sal desc;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do you declare a user-defined exception?
Is primary key clustered index?
What does rownum mean in sql?
What is the usage of sql functions?
How do I debug a stored procedure?
How many rows can sqlite handle?
Why are aggregate functions called so?
What does where 1/2 mean in sql?
How do I make my sql query run faster?
Explain what is a database?
What is dense_rank?
What are the types of dbms?
What view means?
how many values can the set function of mysql take? : Sql dba
How do I edit a stored procedure?