how to get the second max val for every group in a table
Answer Posted / abc
select max(sal) from emp_test where sal not IN(select
max(sal) from
emp_test group by deptno)group by deptno;
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How to export data with a field delimiter?
how can we store any pdf file 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?
How to drop a stored function?
What is the difference between the Oracle ODBC driver and a Microsoft ODBC (Open Database Connectivity) Driver?
hey friends, What are the steps I can do to transfer the database from Microsoft Access 2003 to oracle10g (or SQL) Best regards
How to define an explicit cursor in oracle?
How to connect to oracle using service name instead of sid?
What is the effect of setting the value "all_rows" for optimizer_goal parameter of the alter session command? What are the factors that affect optimizer in choosing an optimization approach?
How data locks are respected in oracle?
How many types of synonyms in Oracle?
15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.
Please explain oracle left join with an example?
What is the relation of a user account and a schema in oracle?
How do I find my oracle client driver version?