Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Database design- Item and Itemhistory

WestDraytonSep 15 2010 — edited Oct 10 2010
I have entity "Item" and it has attribute "Price", and the Price-s change and must be recorded as price history. Which database design would be appropriate?

TABLE Item (ID, Price);
TABLE ItemPriceHistory (ItemID, Price, Date)

or

other way?
If Item is firstly inserted into system, then ItemPriceHistory stays empty, after first change of that item over column "Item.Price" we would insert record with old Price into table ItemPriceHistory.

Thanks.
This post has been answered by BluShadow on Sep 15 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2010
Added on Sep 15 2010
43 comments
2,992 views