Answer Posted / naresh
Here it is the simple solution.
Select Salary from (Select Salary, Rownum from Employee
order by Salary desc) where rownum=2
Should Work
Cheers!
Naresh
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Please explain oracle data types with examples?
How to use like conditions in oracle?
How do we get field details of a table?
What is concurrency in oracle?
What is bulk load in oracle?
What privilege is needed for a user to connect to oracle server?
What is the use of aggregate functions in oracle?
How to revoke create session privilege from a user in oracle?
> 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?
If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...
What happens if you set the sga too low in oracle?
What are temporal data types in oracle?
How to view the data files in the current database?
What are the different types of partitions in oracle?
defination of bitmap index