find out the third highest salary?
Answer Posted / dayaram & sarfaraz (dost)
select a.empno,a.ename,a.sal from emp a
where &n = (select count(distinct(b.sal)) from emp b where
b.sal>= a.sal
Is This Answer Correct ? | 0 Yes | 5 No |
Post New Answer View All Answers
What are the execution control statements?
What is a table index?
How to select an oracle system id (sid)?
Explain the use of grant option in imp command.
What are nested tables?
how to use select statement as formal parameter in procedure specification?(someone said that using string) ex:-procedure(a in number,select ename from emp ) i am asking syntax like this?
How to turn on or off recycle bin for the instance?
What is a proxy object?
How do I spool to a csv formatted file using sqlplus?
What to do if the startbd.bat failed to start the xe instance?
I am using an Oracle 8i Database my data contains Clob data. I am using toad version 7.6 i am able to get the data in toad but unable to extract the data in excel.when trying to extract the data into the excel the toad error says out of memory. Can any body please help me to extract the data through the same toad version. Thanks in advance
What is a cursor variable?
How many categories of data types in oracle?
Explain an exception and its types?
Explain the difference between a procedure and a function?