I need to get data from several tables and put them in a subformat.
SubForm columns are โproduct nameโ and โquantityโ, and they should list products related to the order ID.
Relevant tables:
PRODUCTS(productID,productName)
ORDER(orderID,prodID,quantity)
Where the prodID in ORDER refers to the PRODUCT table.
As you can see, the problem is that the product name is in another table in order. So, I need to get the following data:
Products(productName)
Order(quantity)
Regarding orderID .
How can I use a SQL query to retrieve this data? I know about connections, etc., but I just don't see how to apply it.
Thanks. Hope this makes sense.
source share