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
What are the sql versions?
How does join work in sql?
What is the difference between sql and mysql?
Is sql pronounced sequel or sql?
Where is all the data on the internet stored?
What is mdf ldf and ndf?
What is compound trigger?
how can we know the number of days between two given dates using mysql? : Sql dba
What is record in pl sql?
What is pl/sql table? Why is it used?
How many types of triggers are there in pl sql?
What are the types of dbms?
Can I call a procedure inside a function?
Which join is like inner join?
What is a trigger in sql?