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 / gautam
select ename,sal from emp
where sal in (select max(sal) from emp group by deptno)
and deptno in (10,20)
Gautam
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
What is rename in sql?
What is sqlerrd?
State few characteristics of pl/sql?
What is dbo in sql?
How are sql commands classified?
What are data types in pl sql?
What is the use of prepared statement?
Which one is faster ienumerable or iqueryable?
How many sql are there?
What is Materialized View? In What Scenario we Use Materialized View?
describe mysql connection using mysql binary. : Sql dba
what are all different types of collation sensitivity? : Sql dba
What is package in pl sql?
how to load data files into tables with 'mysqlimport'? : Sql dba
How many subqueries can be nested in a statement?