Changes

Jump to: navigation, search

J.Y.S

399 bytes added, 22:54, 19 October 2010
4.
''James''
<pre>
select substr(first_name ||' '|| last_name) "Employee", job_id, to_char(salary, '$999,999') Salary, department_name
from employees e join departments d
on (e.department_id = d.department_id)
where upper(department_name) in ('MARKETING', 'SALES')
and salary < (select max(salary)
from employees
where substr(job_id,4)) not in ('PRES','VP','MAN','MGR'))
order by employee;
</pre>
1
edit

Navigation menu