a bit confused with how to properly use Joins. This may not even be possible.
my database structure
table_name(column_1, column2, column3), underlined is primary key, *foreign key
stores(store_id, store_name)
products(product_id, *store_id, product_number, product_name)
values(value_id, *product_id, value, datetime)
Question: Can I write an INSERT query for the values table knowing the following: value, datetime, store_id, product_number?
Or do I first have to do a select query to grab the correct product_id from the products table?
NOTE: I didn't have these questions when I had a sloppy database design, lol, I'm trying.
Thanks for the help. Barrett