So say I have a products table with a list of products, and one of the fields is price. This table also has an id field. When someone makes a purchase I insert a row into another table called purchases. This table also has a field called price and a productid field that maps to the products table id field. I want to know if I can get the price from my products table and insert it into the purchases table all in one SQL query.
Is this possible in MySQL?
Thanks!