After eight years on StackOverflow and more than 600 answers, these are my favourite three.
- How to understand the fifth normal form? [🔗]
- Composite primary key vs. an additional ID column. [🔗]
- How to design this database to avoid the cyclic dependency? [🔗]
These are not the highest voted answers, but I like them. All three rely on basic time-tested knowledge and principles, favour simplicity and reasoning over confusion and technical trickery.
Introducing a new tag on the blog named Rule 25. For a post to qualify, the content, knowledge and principles presented must be valid not only today, but were valid at least 25 years ago, and I firmly believe will be valid for at least the next 25 years.
In contrast to current versions of this-and-that, skills and knowledge that do not survive a year.
Another fun puzzle, based on the problem No. 55 in [PFJ86] and published as a challenge by Decision Management Community.
Someone in Dreadsbury Mansion killed aunt Agatha. Agatha, the butler, and Charles live in Dreadsbury Mansion, and are the only ones to live there. A killer always hates, and is no richer than his victim. Charles hates no one that Agatha hates. Agatha hates everybody except the butler. The butler hates everyone not richer than aunt Agatha. The butler hates everyone whom Agatha hates. No one hates everyone. Who killed Agatha?
The idea — as in previous posts — is to use concept of predicates, constraints, relations, and Continue reading “Murder Mystery”
The Decision Management Community posted a fun challenge: Santa’s elves are supposed to order nine reindeer according to a set of rules. The rules are:
- Comet behind Rudolph, Prancer, and Cupid.
- Blitzen behind Cupid.
- Blitzen in front of Donder, Vixen, and Dancer.
- Cupid in front of Comet, Blitzen, and Vixen.
- Donder behind Vixen, Dasher, and Prancer.
- Rudolph behind Prancer.
- Rudolph in front of Donder, Dancer, and Dasher.
- Vixen in front of Dancer and Comet.
- Dancer behind Donder, Rudolph, and Blitzen.
- Prancer in front of Cupid, Donder, and Blitzen.
- Dasher behind Prancer.
- Dasher in front of Vixen, Dancer, and Blitzen.
- Donder behind Comet and Cupid.
- Cupid in front of Rudolph and Dancer.
- Vixen behind Rudolph, Prancer, and Dasher.
The challenge is to create a decision model, but Continue reading “Reindeer Ordering”