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
Can we create a trigger on view?
Why do we use procedures?
How do you optimize a stored procedure in sql?
What are commit, rollback, and savepoint?
What is sql in oracle?
What is partition in sql query?
What are sql data types?
what are the performance and scalability characteristics of mysql? : Sql dba
What is rtm stands for?
What are the types of variable use in pl sql?
How do I use google cloud in sql?
How do I find duplicates in a single column in sql?
Is it possible to pass parameters to triggers?
What are the different types of sql commands?
What is form and report?