I am having a bit of a dilemma I have products in a table with multiple categories and need to retrive each relationship as its value (foreigne key as value) this would be simple if it were a single relationship connection but I need to relate the two tables 3 times within a single query which is currently beyond my SQL knowledge. The only other alternative i know would be to run multiple querys but that method seems inefficent.
products
product code, category1, category2, category3
G35E, 1, 2, 3,
categories
id, name
1, head
2, feet
3, hands
How would I go about writing a query that returns the following
product code, category1, category2, category3
G35E, head, feet, hands,
thanks in advance