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 gpt format?
What is insert command in sql?
Which table is left in join?
Is stored procedure faster than query?
What is pragma in pl sql?
which types of join is used in sql widely? : Sql dba
Are sql database names case sensitive?
What is nvl?
Is pl sql and postgresql same?
what is data manipulation language? : Sql dba
What is the location of pre_defined_functions.
What is meant by cursor in sql?
What is dialect in sql?
Can %notfound return null after a fetch?
How can use stored procedures in sql?