adspace


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

Answer Posted / suresh

select payout,emp_cd from empmas e where 2>(select count(payout) from empmas s where s.payout>e.payout);

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1223


What is the primary use of the model database?

1156


How do I create a trace in sql server?

1128


what is the difference between openrowset and openquery?

1208


What is self contained sub query?

1148


What are the different SQL Server Versions you have worked on?

1084


How can I check that whether automatic statistic update is enabled or not?

1120


Can sql servers link to other servers like oracle?

928


what is spatial nonclustered index

1066


Why should you use or avoid select * statements?

1120


What is acid mean in sql server?

1257


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

1044


How do I find the sql server version?

1114


List the ways in which dynamic sql can be executed?

1099


What is the difference between upgrade and migration in sql server?

1193