How to find 6th highest salary from Employee table ?
Answer Posted / rahul gupta
select sal from employee e1 where 5 = (select count(*) from
employee e2 where e1.sal < e2.sal)
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
You want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition?
What is an execution plan?
Can a table have 2 primary keys?
Explain where clause?
Explain sub-query?
Explain the database you used in your final year project?
What are advantages of ssrs or why we should use ssrs?
What are the types of subquery?
What is subreport?
how to trace the traffic hitting a sql server? : Sql server database administration
What is the dbcc command and why is it used?
What is function of ROLLUP ?
What is user-defined inline table-valued function?
Are there any preferred steps that need to be taken care of before starting the installation of sql server 2000?
Explain primary key in sql server?