How to Remove the 3rd highest salary person record from
table?
Answer Posted / manoj
delete from employee where sal = (select sal from (select sal from employee order by sal desc) where rownum = 3);
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
What are oracle functions?
How to create a stored program unit?
how can we store any pdf file in oracle
What happens to indexes if you drop a table?
How to get a create statement for an existing table?
Explain an exception?
What is the usage of analyze command in oracle?
Can we insert data in view oracle?
What is the string concatenation operator in oracle?
What are the limitations oracle database 10g xe?
How do I know if oracle is installed on windows?
How to execute a stored program unit?
Is oracle the best database?
> 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?
How do I limit the number of rows returned by an oracle query after ordering?