LesleyParker
New member
- Local time
- Today, 02:46
- Joined
- Mar 12, 2008
- Messages
- 7
I have this problem when creating a database :
I want to make a database that simulates a real life shop.
I have 3 tables : "Products", "Customers" and "Purchases". In the Products table, I have a field called "In Stock" and it basically says how many of each product is in stock in the shop at the moment.
My question is : Is it possible to make it so that everytime a customer makes a purchase, the products "In Stock" number automatically decreased by however many he bought?
Thanks in advance. =]
I want to make a database that simulates a real life shop.
I have 3 tables : "Products", "Customers" and "Purchases". In the Products table, I have a field called "In Stock" and it basically says how many of each product is in stock in the shop at the moment.
My question is : Is it possible to make it so that everytime a customer makes a purchase, the products "In Stock" number automatically decreased by however many he bought?
Thanks in advance. =]