Find out the 3rd highest salary?
Answer Posted / srikanth
select q.sal
from emp q
where 3=(select distinct(count(b.sal))
from emp b
where q.sal<=b.sal)
Is This Answer Correct ? | 17 Yes | 10 No |
Post New Answer View All Answers
What is the maximum number of columns in sql table?
What are triggers and its uses?
What is the difference between a primary key and a unique key?
How to execute a stored procedure?
What is a behavioral trigger?
What is java sql drivermanager?
What will you get by the cursor attribute sql%rowcount?
How do I count duplicates in sql?
Can a primary key be a foreign key?
What is procedure function?
Is subquery faster than join?
Why is sql important?
how to add a new column to an existing table in mysql? : Sql dba
Does asenumerable execute the query?
Why do we use procedures?