find out the third highest salary?
Answer Posted / neha
select max(sal) from emp where sal <(select max(sal)from emp
where sal<(select max(sal) from emp));
| Is This Answer Correct ? | 103 Yes | 31 No |
Post New Answer View All Answers
src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));
How to create a new oracle data file?
How to drop a tablespace?
What is Segment Advisor in Oracle?
What is MTTR advisor in Oracle?
What is the difference between view and materialized view in Oracle?
What is merge statement used for?
Point out the difference between user tables and data dictionary?
How to get execution path reports on query statements?
How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?
What is the difference between PFILE and SPFILE in Oracle?
Explain a segment?
Why do I get unexpected characters from 8-bit character sets in weblogic jdriver for oracle?
What is bind variable in oracle 11g?
> 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?