write query for fourth maximum salary from employee table
Answer Posted / ajay roy
The Correct answer is ---
select salary from employee aa
where 4=(select count(*)from employee bb
where aa.salary<=bb.salary)
Thanks Elumalai.k
Top Keyword returns the top(first) row not the max record
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What does select 1 mean?
Can we insert data into a view?
What is 1nf normalization form?
Explain the cursor lock types?
What are the different types of cursor?
explain different levels of normalization? : Sql server database administration
How to check parameter value in stored procedure sql server?
How to fetch the next row from a cursor with a "fetch" statement?
Does full backup break log chain?
What is a constant or literal in ms sql server?
Define views.
What is clustered vs nonclustered index?
How many full-text indexes can a table have?
Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?
How many types of triggers are there?