Write an SQL query to select the top 10 rows in a database and joins to 3 different table based on a field called code