FreeriderUK
Well-known member
In my Expenses table (Access DB), I have fields Category, Payee & Method
I also have a Category, Payee & Method table which are LOOKUP tables, all with ID and Description.
I need a SQL statement which will collect the descriptions of these three fields.
I can get the results from the Category table using the following:
but, can't seem to get my head round multiple tables.
How can I achieve the equivalent of:
?
I also have a Category, Payee & Method table which are LOOKUP tables, all with ID and Description.
I need a SQL statement which will collect the descriptions of these three fields.
I can get the results from the Category table using the following:
VB.NET:
SELECT ExpenseID, Categories.CategoryDescription
FROM (Categories INNER JOIN Expenses ON Expenses.ExpenseCategory = Categories.categoryid)
but, can't seem to get my head round multiple tables.
How can I achieve the equivalent of:
VB.NET:
SELECT ExpenseID, Categories.CategoryDescription, ...
FROM (Categories INNER JOIN Expenses ON Expenses.ExpenseCategory = Categories.CategoryID)
(Payees INNER JOIN Expenses ON Expenses.ExpensePayee = Payees.PayeeID)
(Methods INNER JOIN Expenses ON Expenses.ExpenseMethod = Methods.MethodID)