adspace


Please get the 4 th maximum salary from a table without
using any sql keyword (TOP,MAX are mot allowed)

Answer Posted / v rajkumar

select salary from Emp a where 4 = (select count(distinct
(salary)) from Emp b where b.salary>= a.salary)

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

1139


What are the different subsets of sql?

1661


If any stored procedure is encrypted, then can we see its definition in activity monitor?

1080


Explain system functions or built-in functions? What are different types of system functions?

1069


Does view occupy space?

1030


How do I create a trace in sql server?

1125


What is self contained sub query?

1147


Can we shrink data file in sql server?

1135


Can sql servers link to other servers like oracle?

928


What kind of problems occurs if we do not implement proper locking strategy?

1508


What are the kinds of subquery?

1117


Disadvantages of the indexes?

1230


What is a scheduled job or what is a scheduled task?

1043


What are the source of constraints?

1015


How to connect php with different port numbers?

1196