Select first_name as Служащий from Customers Where first_name='JOHN' Select first_name as Коллеги, department_id from Employee Where department_id=(Select department_id from Employee Where first_name='JOHN' ) AND first_name<>(Select first_name from Employee Where first_name='JOHN' ) UNION is not suitable. I need the table to look like: Employee, Colleagues, Department ID