Read this SQL tutorial to learn when to use SELECT, JOIN, subselects and UNION to access multiple tables with a single statement. It’s sometimes difficult to know which SQL syntax to use when ...
Say we have two types of tools: hammers and wrenches. We have a list of work orders, and we want to track what tool was used for the hammering and what was used for the wrenching. The problem is that ...