BMAT Interview Question

Joining SQL tables by ID and such