Find out the 3rd highest salary?
Answer Posted / jeevitha
select distinct a.salfrom emp a where &n= (select count
(distinct(b.sal)from emp b where a.sal<= b.sal)
-----
enter the highest sal of n:2,3.....n
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
what are the authentication modes in sql server? : Sql dba
Are stored procedures compiled?
i have a column which may contain this kind of value: 123*67_80,12*8889_5,34*8_874 ,12*7_7 (can contain space before a comma, and this string length can be anything) now i want to split this value into two column like: column1: 123*67,12*8889,34*8,12*7 column2: 80,5,874,7 use function for this
Which join condition can be specified using on clause?
what is myisam? : Sql dba
What is crud stand for?
What is the difference between partitioning and sharding?
Explain about various levels of constraint.
How to change a value of the field ‘salary’ as 7500 for an employee_name ‘john’ in a table employee_details?
Can we join two tables without common column?
Explain what is rdbms?
How to find 3rd highest salary of an employee from the employee table in sql?
How to write html code in pl sql?
What are the basic sql commands?
What is java sql driver?