While you can put a subquery in the SELECT clause, they usually end up being difficult to read, so it is a good idea to use another approach like the one on the next slide
The subquery is looking through the invoice table for every vendor to find their latest invoice