In my database, I have 2 tables, Orders and OrderDetails. This may be obvious, but Orders holds information relevant (DateOrdered, OrderStatus, CustomerNumber) and the OrderDetails table contains information relevant to the details (ProductOrdered, ProductPrice, Shipped)
I want to know the best way to set it up so that when all of the Details of an Order are market Shipped, the order then gets an OrderStatus as Shipped. In addition, for example, if at some point in the process a all of the details get marked as shipped, the OrderStatus changes to Shipped - and someone goes and unmarks a detail as shipped for some reason - the order is then marked back to Pending.
I would think that this is a pretty common scenario - I am just looking for some direction.
Thanks in advance.