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 / anil pednekar
select table1.ename from (select deptno, max(sal) as sal1
from table1 group by deptno having deptno in(1,2)) as T1,
table1 where T1.deptno=table1.deptno and
T1.sal1=table1.sal
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Does access use sql?
What is sql and explain its components?
What are %type and %rowtype for?
What is record in pl sql?
what is view? : Sql dba
How do you go back in sql?
what is foreign key? : Sql dba
How can we store rows in PL/SQL using array?
How do you concatenate in sql?
What does the sign mean in sql?
Can you have a foreign key without a primary key?
Is foreign key mandatory?
How to revise and re-run the last sql command?
How insert into statements in sql?
What language is oracle sql developer?