Using aliases in multi-table queries
11 Comments
When joining multiple tables together in a query, use aliases every time on every field. Say we’ve got two tables, Customers and Salespersons. The Customers table has a PreferredSalespersonID field that identifies who their normal sales rep is, and that lets us quickly grab the right salesperson when a customer calls in. We want to…
Read More