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
How many triggers can be applied to a table?
Can we use views in stored procedure?
What is mdf ldf and ndf?
What are the different types of triggers?
What is interval partition?
What is indexing oracle sql?
How to avoid duplicate records in a query?
How sql query is executed?
what is union? : Sql dba
Why we use sql profiler?
How much does sql certification cost?
What is partition in sql query?
What are different sql data types?
How do I view a view in sql?
Does truncate release storage space?