January 2008
Intermediate to advanced
384 pages
8h 1m
English
This problem was posted on a newsgroup by Patrick L. Nolan at Stanford University He has a small database with the following business rules
Every person in the database is uniquely defined by a single key, their user_id.
Everyone is assigned a job category—call them A, B, and X.
Everyone in job category X has a supervisor, who must be in either job category A or job category B.
Let’s assume that nobody can be their own supervisor.
This is a minimal set of rules that we expect to become more and more complex over time.
One proposal was to divide job category X into two categories; call them XA and XB, respectively. All the XA people would have A supervisors, and all the XB people would have ...
Read now
Unlock full access