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 / lipika
Select Ename From emp where sal in (Select Max(Sal) From
emp where deptno in (10,20) group by deptno);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we use rowid as primary key?
What is a trigger word?
What is the size of partition table?
Can a foreign key be null?
What does the argument [or replace] do?
What is rename in sql?
how do you control the max size of a heap table? : Sql dba
What is sap sql anywhere?
what is data manipulation language? : Sql dba
when is the use of update_statistics command? : Sql dba
how to delete duplicate rows from a join tables(I have three tables on that join) how do you know which join is need to be used? The select statement I have is: SELECT gc_skill_type.skill_type, gc_area_tec.area, gc_technology.technology, gc_technology.id_technology, gc_area_tec.id_area_tec FROM gc_skill_type, gc_area_tec, gc_technology WHERE gc_area_tec.id_skill_type (+) = gc_skill_type.id_skill_type AND gc_technology.id_area_tec (+) = gc_area_tec.id_area_tec order by gc_skill_type.skill_type asc, gc_area_tec.area asc, gc_technology.technology asc
What is dbo in sql?
How exception is different from error?
Is ms sql is free?
what is 'mysqladmin' in mysql? : Sql dba