find out the third highest salary?
Answer Posted / pardeep kumar
This is the Simplest One
Let i have a Column named EmpSal in Tbale Named tbEmp
Select Min(EmpSal) from tbEmp where EmpSal IN(Select
Distinct Top 3 EmpSal from tbEmp ORDER BY EmpSal DESC)
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the difference between a primary key & a unique key?
Can a parameter be passed to a cursor?
20. Using a set operator, display the client number of all clients who have never placed an order.
Can you have more than one content canvas view attached with a window ?
How i can handle exception in large code like 1000 line without distrubing the code or without exception handler sction?
How will you identify oracle database software release?
How to fetch the row which has the max value for a column?
What is the parameter mode that can be passed to a procedure?
What is MTTR advisor in Oracle?
Differentiate between translate and replace?
> 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 will you differentiate between varchar & varchar2?
Is there an oracle sql query that aggregates multiple rows into one row?
What is different types of joins?
What are the different types of partitions in oracle?