consider a table which contain 4 columns,ename,eno,sal and
deptno, from this table i want to know ename who having
maximum salary in deptno 10 and 20.
Answer Posted / partha
Select emplid, sal from (select emplid, sal from
emp_sal_tbl where deptid = 10 order by sal desc) a where
rownum < 2
union
Select emplid, sal from (select emplid, sal from
emp_sal_tbl where deptid = 20 order by sal desc) a where
rownum < 2
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?
What is the purpose of the primary key?
What is procedure and function?
What is sql engine in oracle?
How many primary keys can a table have?
Is id a reserved word in sql?
which types of join is used in sql widely? : Sql dba
What is a temp table?
What are crud methods?
Can you call pl/sql package functions from within a fast formula?
Are left and right joins the same?
How are functions and procedures called in PL/SQL?
What is the difference between functions, procedures, and packages in pl/sql?
Is left join inner or outer?
What are the operators in sql?