find out the third highest salary?
Answer Posted / nehal
select e.sal from employee where n-1=(Select count(distinct
sal) from emp where sal>e.sal)
Put n=3 for the 3rd highest salary.
| Is This Answer Correct ? | 10 Yes | 7 No |
Post New Answer View All Answers
please explain.. DB architecture ...
What are the predefined tablespaces in a database?
How to use "in" parameter properly?
How to lock and unlock a user account in oracle?
What to do if the binary spfile is wrong for the default instance?
Does facebook use oracle?
Why does for update in oracle 8 cause an ora-01002 error?
What is the parameter mode that can be passed to a procedure?
What is control file used for?
Where are the settings stored for each instance in oracle?
What are the uses of a database trigger?
How to connect asp pages to oracle servers?
What is oracle join syntax?
What view(s) do you use to associate a users SQLPLUS session with his o/s process?
How to Truncate Table in Oracle