Instruction
Cool! That's it. Now that we have the tables ready, let's try to query our database.
Exercise
Select first_name and last_name of each employee along with the title of their current position. Use the ERD below to help you.

Hints:
- You will need to use
JOINtwice to join the three tables. - If you only want to retrieve the current position of each employee, remember that the stored
end_datafor that particular row injob_historywill beNULL.
Stuck? Here's a hint!
Type:
SELECT e.first_name, e.last_name, p.title FROM employee e INNER JOIN job_history j ON e.id = j.employee_id JOIN position p ON j.position_id = p.id WHERE end_date IS NULL;



