MedImpact interview question

Write some code to join specified data from two tables.