how to find nth highest salary
Answer Posted / amit
Select salary
from employees
order by salary desc
limit n-1,1;
Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How to get a list of columns using the "sp_help" stored procedure in ms sql server?
What is sub query and its properties?
Can one drop a column from a table?
hi, the following are the outputs of sp_spaceused and sp_tempdbspace sp_spaceused ------------ database size unallocated size tempdb 77752.95 MB 28026.99 MB sp_tempdbspace ------------- database size spaceused tempdb 77752.945312 1.007812 the unused space in sp_spaceused is nearly 28 Gb and in sp_tempdbspace is nearly 76 Gb cany any one explain about this output and why its giving different results.
How to enable tcp/ip protocol on a sql server?
Does hive support indexing?
What is a group function explain with an example?
What is primary key and example?
What is the maximum size per database for sql server express?
Can we run Reporting Services with SQL Server express edition, which is a free version of SQL Server?
What is partition in sql server?
What is autocommit mode in sql server?
How do you use a subquery to find records that exist in one table and do not exist in another?
Some queries related to SQL
What is the difference RDBMS and Graph Database?