Page is a not externally linkable
- Code, Content, and Presentation
-- Databases
---- Database Structure Design


RWSteele - 6:23 pm on Nov 15, 2006 (gmt 0)


I've always worked with a OrderItems/OrderDetails table. Why wouldn't you?
Just off the top of my head I can think of a few reasons.

order
-------------
orderId
customerID
orderDate
paymentType
lastModifed
orderStatus
dateShipped

orderitems
-------------
orderitemID
orderId
productId
quantity
inventoryStatus (out of stock, backordered,etc)
shippingAmount
discountAmount (coupons, discounts, etc)
productTotal

Just my .02.


Thread source:: http://www.webmasterworld.com/databases_sql_mysql/3152890.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com