Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Join query help

$
0
0

Table 1 - Locations: columns ID and Name

Table 2 - Equipment: columns LocationID, Name

Table 3 - People: columns LocationID, Name

As implied the locationID fields map back to the the locations table ID column.  The general idea is people and equipment tracked by location. 

What is the query to produce this result format:

Locations.Name, [Type], [Name]

where [Type] is either Equipment or Person, and [Name] is the corresponding name column.



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>