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 / srilekha

select ename from table where sal=(select max(sal) from
table) and depetno in (10,20)

Is This Answer Correct ?    27 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of partition by in sql?

523


What is spool?

601


explain access control lists. : Sql dba

559


Any attempt to navigate programmatically to disabled form in a call_form stack is allowed?

586


What is dbo in sql?

540






Does asenumerable execute the query?

607


What is difference between pls_integer and integer?

523


What is delete command in sql?

563


Is sql workbench free?

538


Is join an inner join?

541


What are the sql aggregate functions?

612


What does := mean in pl sql?

563


how to enter binary numbers in sql statements? : Sql dba

493


What is the basic structure of an sql?

579


What is query syntax?

523