Jump to content

The price of a product in time


El_Pablo

This topic is 5546 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

How would you model the structure of the tables to know what was the price of a product in time? In a billing system it's important to keep the price up to date and also keep the price paid for a product for a specific time.

This is one of my approach

products (pkProductID, price (lookup from prices), ...)

prices (pkPriceID, fkProductIDprice, date, ...)

billDetail (fkProductID, fkBillID, price (lookup from product), ...)

Thanx for any other suggestion.

Link to comment
Share on other sites

This topic is 5546 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.