I'd like to get the following information:
prisoner_id, first_name, last_name, job_description for all prisoners, even if they don't have a job
From the tables:
Work:
Prisoner_id
job_id
start_date
Job:
job_id
job_description
Prisoner:
Prisoner_id
person_ssn
Person:
person_ssn
first_name
last_name
Here's my attempt at it, but I don't know how to get the job description.
select prisoner_id, first_name, last_name, job_description from
prisoner
left join work on prisoner_id
natural join person on person_ssn;