Show product names in each order SELECT od.orderNumber, p.productName FROM orderdetails od INNER JOIN products p ON od.productCode = p.productCode; -- 3. List employees and their offices SELECT ...
When an Active Record method is called, the query is not immediately generated and sent to the database. Instead, the query is sent only when the data is actually needed. So each example below ...