implemented the costume scenario#30
Conversation
| constraint ck_quantity_must_be_at_least_1 check(Quantity > 0), | ||
| PriceSoldPerCostume int not null | ||
| constraint ck_price_sold_per_costume_there_are_fixed_prices check(PriceSoldPerCostume in (15,17,20,22,25,27,30)), | ||
| DateBought date not null, |
There was a problem hiding this comment.
AS: -3 DateBought must be after the bussiness opened. Once you have this constraint then the only constraint you need on DateSold is that it should be between DateBought and current date. All multi column constraints belong at the end of the table.
There was a problem hiding this comment.
I have made the amendments. On the spec it mentioned that she was supplying fam and friends before the business opened - is that not a reason not to have the date bought constraint after the business opened?
There was a problem hiding this comment.
I would assume that would not be included in the db since that was before it becase an official business.
AvigailGellis
left a comment
There was a problem hiding this comment.
AS: Great job! 88% Please see comments and resubmit.
|
I have made the requested changes, please review. |
Please find my homework.
Let me know if its all ok.