- SELECT s.last_name AS employee_last_name,
- ss.reports_to AS manager_last_name
- FROM staff AS s
- LEFT JOIN staff AS ss ON s.employee_id=ss.reports_to
- GROUP BY 1, 2
- SELECT DISTINCT s.last_name AS employee_last_name,
- ss.reports_to AS manager_last_name
- FROM staff AS s
- LEFT JOIN staff AS ss ON s.employee_id=ss.reports_to
Re: task 4
From Ivory Tortoise, 2 Months ago, written in Plain Text, viewed 117 times.
This paste is a reply to task 4 from Ilya
- view diff
URL http://codebin.org/view/ff93bc71
Embed
Download Paste or View Raw
— Expand Paste to full width of browser