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 / rohan
select empno from emp where (sal,deptno) in ( select max
(sal),deptno from emp where deptno in (10,20) group by
deptno)
| Is This Answer Correct ? | 13 Yes | 6 No |
Post New Answer View All Answers
How can I make sql query run faster?
What is sql analyzer?
What is 19 null in sql?
Is it possible to create the following trigger: before or after update trigger for each row?
How do sql databases work?
is mysql query is case sensitive? : Sql dba
Explain commit, rollback and savepoint.
What is indexing in sql and its types?
what is the difference between nested subquery and correlated subquery?
What is difference between pls_integer and integer?
Which join is like an inner join?
Explain the components of sql?
How many disk partitions should I have?
How do I use google cloud in sql?
What is the example of procedure?