Same principle. Just make your select join the three tables.