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 the use of double ampersand (&&) in sql queries? Give an example
How can get second highest salary in sql?
What sql does db2 use?
what are sequences
What is java sql driver?
What is prepared statement in sql?
What is the difference between function and procedure in pl/sql?
What does where 1 1 mean in sql?
What is clause in sql?
How do I count rows in sql?
What is dbo in sql?
What is the difference between jpql and sql?
Define overloaded procedure?
what is 'mysqld'? : Sql dba
What is record type in pl sql?