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
Is sql better than access?
What is a sql select statement?
Can a foreign key be null?
What is the example of procedure?
Explain dml and ddl?
Enlist the characteristics of pl/sql?
What are different categories of sql commands?
How to add, remove, modify users using sql?
What is cte sql?
How to set up sql*plus output format in oracle?
What is the sql query to display the current date?
What are the main features of cursor?
Can we delete column in sql?
How do I count rows in sql query?
What is union?