Skip to content
Exercise · Indexes Beyond the B-tree · lesson 10 of 14

Exercise: one senior barista per shop

Each of the coffee chain's shops must have at most one senior barista. A shop may have any number of ordinary baristas. Right now the rule rests only on the manager's attention, and the database should check it itself.