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 / abhishekjaiswal
select last_name,salary from employees where (salary,department_id) in ( select max(salary),
department_id from employees where department_id in (10,20) group by
department_id)
/
Output
LAST_NAME SALARY
------------------------- ----------
Hartstein 13000
Whalen 4400
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
explain the advantages and disadvantages of stored procedure? : Sql dba
What is a scalar value in sql?
What company owns postgresql?
Can we want to pass a parameter payroll_id to this external pl/sql function, how do we do it?
Define a temp table?
Is json a nosql?
What are the different types of dbmss?
What is natural join in sql?
Is and as keyword in pl sql?
Which command is used to call a stored procedure?
What is indexes?
Is t sql a programming language?
what are the differences between char and nchar? : Sql dba
What is difference between joins and union?
What are aggregate functions in sql?