adspace


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

Answer Posted / shashank tayal

select salary from table_name order by desc limit 3,1;

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1083


What is the difference between for xml raw and for xml auto?

1125


Equi join and non equi join is possible with sql server?

1140


Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60

2300


How do I find query history in sql server?

1034


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1032


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

1084


Why should you use or avoid select * statements?

1120


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


Why use identity in sql server?

1210


What is subquery? Explain the properties of a subquery?

1070


what is spatial nonclustered index

1066


What is an indexed view?

1030


Why we use the openxml clause?

1088


Can we shrink data file in sql server?

1135