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
Is sql procedural language?
How to execute a stored procedure?
how to shutdown mysql server? : Sql dba
what is a table in a database ? : Sql dba
what is index? : Sql dba
how to create a table index in mysql? : Sql dba
What is the difference between functions, procedures, and packages in pl/sql?
What is trigger price?
which tcp/ip port does sql server run on? : Sql dba
How to use transactions efficiently : transact sql
What is difference between inner join and cross join?
Is sql scripting language?
Is sql better than access?
Which sql most popular?
Determine if oracle date is on a weekend?