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 / sanjeev
SELECT ENAME FROM TABLE NAME WHERE SAL>(SELECT MAX(SAL)
FROM TABLE NAME GROUP BY DEPTNO
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Are sql database names case sensitive?
what are the differences between require and include, include_once and require_once? : Sql dba
What is compiled query?
What are the rules to be applied to nulls whilst doing comparisons?
Are stored procedures compiled?
What is trigger in flip flop?
What is difference sql and mysql?
what is the difference between join and union? : Sql dba
Is join and inner join the same?
How does rowid help in running a query faster?
What is nvl?
what is the difference between undefined value and null value? : Sql dba
Can we insert data into view?
What is cursor explain with example?
when is the use of update_statistics command? : Sql dba