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
Describe sql comments?
Is sql low level language?
how can we know the count/number of elements of an array? : Sql dba
what is the syntax used for partition in tsql? : Transact sql
Which is faster count (*) or count 1?
Can we rename a column in the output of sql query?
Explain polymorphism in pl/sql.
How do you update sql?
How do you exit in sql?
Is there a way to automate sql execution from the command-line, batch job or shell script?
What is sql and how does it work?
How do I install microsoft sql?
Name the different types of indexes in sql and define them.
Explain what is sql?
what is “go” in t-sql? : Transact sql