find out the third highest salary?

Answer Posted / punit chauhan

select * from emp where sal<(select max(sal) from emp
where sal<(select max(sal) from emp))


punit chauhan
iMS NOIDA
doing MCA

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define oracle database

588


Explain the use of parfile option in exp command.

511


> CREATE OR REPLACE FUNCTION FACTORIAL_1(factstr varchar2 ) 2 RETURN NUMBER AS 3 new_str VARCHAR2(4000) := factstr||'*' ; 4 fact number := 1 ; 5 BEGIN 6 7 WHILE new_str IS NOT NULL 8 LOOP 9 fact := fact * TO_NUMBER(SUBSTR(new_str,1,INSTR(new_str,'*')-1)); 10 new_str := substr( new_str,INSTR(new_str,'*')+1); 11 END LOOP; 12 13 RETURN fact; 14 15 END; explanation Above program?

1562


How to define a data source name (dsn) in odbc manager?

520


How index is implemented in oracle database?

583






What is a subquery in oracle?

574


Explain the use of rows option in exp command.

577


What do you mean by merge in oracle and how can you merge two tables?

513


What is materialized view in Oracle?

626


What exactly do quotation marks around the table name do?

537


How to delete all rows a table in oracle?

617


How to assign a tablespace to a users in oracle?

580


Explain the difference between a procedure and a function?

549


how can db_files > maxdatafiles since db_files is for instance and the later is for database

2168


Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.

1347