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 / guest
Select emp_name from emp where sal =(Select Max(sal) from
emp where deptno=10) and deptno=10 union
Select emp_name from emp where sal =(Select Max(sal) from
emp where deptno=20)and deptno=20
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
Is sqlite good enough for production?
What are different types of queries in sql?
What is a procedure in pl sql?
What is the use of pl/sql table?
What are few of the schema objects that are created using PL/SQL?
Are dml statements autocommit?
Explain what is a view?
What is the difference between truncate and drop statements?
What are the three pl sql block types?
What is a table?
What is PL/SQL Records?
What is left join example?
What is meant by user defined function?
how to decrement dates by 1 in mysql? : Sql dba
What are the triggers associated with image items?