I have a table with a few joins to other tables... I want to run a select to get out all the data from its linked tables, it has these headings
ID, Category, RoundResID, ProdResID.
RoundResID and ProdResID both point to a Resources table, which has a field called "name" (what I want), Category points to a BuildCats Table, I want a the "name" col again... I can do the Category Join:
SELECT BuildCats.Name AS Category, Buildings.Name AS Name,
FROM Buildings
INNER JOIN BuildCats ON Buildings.Category = BuildCats.ID
How can I reference 2 feilds to get their Names from Resources
ID, Category, RoundResID, ProdResID.
RoundResID and ProdResID both point to a Resources table, which has a field called "name" (what I want), Category points to a BuildCats Table, I want a the "name" col again... I can do the Category Join:
SELECT BuildCats.Name AS Category, Buildings.Name AS Name,
FROM Buildings
INNER JOIN BuildCats ON Buildings.Category = BuildCats.ID
How can I reference 2 feilds to get their Names from Resources