I need to get data from multiple tables and put it into a subform.
The SubForm columns are 'product name' and 'quantity' and they need to list out the products relating to the order ID.
The tables in question are:
PRODUCTS(productID,productName)
ORDER(orderID,prodID,quantity)
Where the prodID in ORDER refers to the PRODUCTS table.
As you can see, the problem is that the name of the product is in a different table to the order. So, the data I need to get is:
Products(productName)
Order(quantity)
In relation to the orderID.
How can I use a SQL query to get this data? I am aware of joins and so on, but I just can't see how to apply it.
Thank you. I hope this makes sense.