Please get the 4 th maximum salary from a table without
using any sql keyword (TOP,MAX are mot allowed)
Answer Posted / veeresh kethari
with SalCTE (EMPID,Ename,Sal,Num)as
(select *,row_number() over(order by sal desc) num from emp)
select * from SalCTE where Num=4
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
what is the difference between Delete and Truncate command in SQL
List some case manipulation functions in sql?
How many columns can we include on clustered index ?
What is server-level principal?
Is null in sql server?
What are key, name and value columns of an attribute? : sql server analysis services, ssas
What is sharding?
Explain the categories of stored procedure?
You want to implement the many-to-many relationship while designing tables. How would you do it?
How to remove duplicate rows from table?
What is code near application topology?
What is mean by dml?
What do you mean by recursive stored procedure?
What is a transaction and why is it important?
How many types of built in functions are there in sql server 2012?