how to find nth highest salary
Answer Posted / brahma
select * from table_name t1 where (n-1)=
(select count(distinct(column_name)) from table_name t2
where t2.column_name>t1.column_name)
Is This Answer Correct ? | 101 Yes | 47 No |
Post New Answer View All Answers
What happens if you delete a table that is used by a view?
Can you insert NULL in unique column?
plss anybody specify tha constrian management system in dbms
What is the difference between createstatement and preparedstatement?
Explain what are the basic functions for master, msdb, model, tempdb databases?
Does sql server 2000 clustering support load balancing?
How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication
How to create nested stored procedure?
What is open database communication (odbc)?
What is explicit mode in sql server?
What is meant by dirty read?
what is bit datatype? : Sql server database administration
Retrieve the unique rows from table without using UNIQUE and DISTINCT keywords.
What is the contrast amongst drop and truncate?
What are the database roles? : sql server security