write a query for the fifth highest salary?
Answer Posted / venkates
select distinct(a.sal) from emp a where 5=(select
count(distinct(b.sal)) from emp b where a.sal<=b.sal)
| Is This Answer Correct ? | 22 Yes | 2 No |
Post New Answer View All Answers
What are different types of clusters present?
What is the difference between primary and candidate key?
What are the disadvantages of views in a database?
What is the DIF format and when we will use in teradata
Explain the field term used in database.
Is storing images in a database a good idea?
You are creating a Index on EMPNO column in the EMPLOYEE table. Which statement will you use?
What is ole db provider for sql server?
Given a table Employee which has columns name and salary, write an SQL query to find the employee with the second highest salary.
What does specialization in DBMS mean?
What is dialect in database?
What is the difference between database and server?
How do you connect to a database?
can we delete autodiff back up that we have set through sql server agent.
What is the advantage of varchar2 over char?