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 / avinash
select ename from emp where sal in(select max(sal) from
emp) and deptno in(10,20)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which is faster view or stored procedure?
What plvcmt and plvrb does in pl/sql?
How do you define a foreign key?
What are the different sql languages?
What is snowflake sql?
How can we connect an Android App to an Oracle database and use the PL/SQL procedural code?
list out some tools through which we can draw e-r diagrams for mysql. : Sql dba
What is the plv (pl/vision) package offers?
What is a schema? How is it useful in sql servers?
How many types of indexes are there in sql?
how to create a new table in mysql? : Sql dba
Advantages and disadvantages of stored procedure?
GLOBAL TEMPORARY TABLE over Views in advantages insolving mutating error?
does sql support programming? : Sql dba
How can we avoid duplicating records in a query?