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 / avinash
select ename from emp where sal in(select max(sal) from
emp) and deptno in(10,20)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the disadvantages of file system?
What is the difference between union and union all command?
How do I count duplicates in sql?
Mention what problem one might face while writing log information to a data-base table in pl/sql?
How long does it take to learn pl sql?
What are the operators in sql?
How many types of literals are available in pl sql?
Explain scalar functions in sql?
What is pl sql record in oracle?
What is a join query?
What is a natural join sql?
How to take user input in pl sql?
what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba
What is a full join?
What is the maximum number of triggers, you can apply on a single table?