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 / swati
select top 1 ename from emp where deptno in(10,20) order by
sal desc
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can get second highest salary in sql?
where are cookies actually stored on the hard disk? : Sql dba
how many tables will create when we create table, what are they? : Sql dba
What is pl sql collection?
list out some tools through which we can draw e-r diagrams for mysql. : Sql dba
What is an intersect?
What port does sql server use?
What are data types in pl sql?
What is the basic form of sql query?
Can a composite key be null?
What is the difference between cluster and non-cluster index?
Explain commit, rollback and savepoint.
what are all the common sql function? : Sql dba
Determine if oracle date is on a weekend?
What does over partition by mean in sql?