6.4. Modeling Classes with Tables
Many years ago, the ANSI X3H2 Database Standards Committee (now the INCITS H2 Database Standards Committee) had a meeting in Rapid City, South Dakota. We had Mount Rushmore and Bjarne Stroustrup as special attractions. Mr. Stroustrup did his slide show about Bell Labs inventing C++ and OO programming for us, and we got to ask questions.
One of the questions was how we should put OO stuff into SQL. His answer was that Bells Labs, with all their talent, had tried four different approaches to this problem and had come the conclusion that you should not do it. OO was great for programming but deadly for data.
I have watched people try to force OO models into SQL and it falls apart in about a year. Every typo becomes ...
Get Joe Celko's Thinking in Sets: Auxiliary, Temporal, and Virtual Tables in SQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.