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 / rashmi_raju
SELECT ename FROM emp WHERE sal =(SELECT MAX(sal) FROM emp
WHERE deptno=10)
UNION
(SELECT ename FROM emp WHERE sal =(SELECT MAX(sal) FROM emp
WHERE deptno=20))
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
How do you optimize a stored procedure in sql?
what are the differences between get and post methods in form submitting. Give the case where we can use get and we can use post methods? : Sql dba
How to download oracle sql developer?
What is the purpose of the primary key?
Which one is better sql or oracle?
Can you sum a count in sql?
What are the packages in pl sql?
Why join is faster than subquery?
How do I run sql?
What is oracle pl sql developer?
What is denormalization in a database?
How to make a copy values from one column to another in sql?
How can you load multi line records? : aql loader
How many types of keys are there in sql?
what is primary key? : Sql dba