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 / john
select dept_id,ename max(sal) from employee where dept_id
in ('1','2') group by dept_id;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which one is better sql or oracle?
what are all different types of collation sensitivity? : Sql dba
Is primary key is clustered index?
What is int identity in sql?
How run sql*plus commands that are stored in a local file?
How do I run pl sql in sql developer?
Can cursors be part of a trigger body?
What is synonyms?
what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba
What is normalization sql?
Does a primary key have to be a number?
What is the use of non clustered index?
What is the file extension for sql database?
How do I remove sql plus from windows 10?
What are different joins used in sql?