select first_name, dept_name from employees inner join departments on employees.dept_id = departments.dept_id where salary < 15000 order by dept_name;
select employee_id, first_name from employees left join departments on employees.dept_id = departments.dept_id where salary < 10000;
select employee_id, first_name, dept_name from employees right join departments on employees.dept_id = departments.dept_id where salary between 3000 and 20000 order by employee_id;
select employee_id, first_name from employees cross join departments;
select employee_id, first_name, dept_name from employees full join departments on employees.dept_id = departments.dept_id;
create type mood as ENUM ('sad', 'ok', 'good');
select * from employees UNION select * from departments;
select * from employees INTERSECT select * from departments;
select * from employees UNION ALL select * from departments;
select * from employees EXCEPT select * from departments;