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 / purushotham
select ename from table where sal in
(select max(sal) from table_name
where deptno in ('10','20')
group by deptno);
| Is This Answer Correct ? | 16 Yes | 8 No |
Post New Answer View All Answers
what is query cache in mysql? : Sql dba
Which is faster view or stored procedure?
Can we call stored procedure in function?
What are the two types of exceptions in pl/sql?
How to start the command-line sql*plus?
what are the types of join and explain each? : Sql dba
Does truncate require commit?
Is hadoop a nosql?
What is the maximum number of rows in sql table?
What is a field in a database?
What is embedded sql in db2?
How to run sql commands in sql*plus?
What is the use of index in hive?
What is not null in sql?
Can you join a table to itself?