26 points · by tabtab · 8y ago · 5 comments
raises the idea that the RDBMS (relational database) is among the most influential inventions ever.
Its effect on society is far less visible to the average person on the street than say the Internet or nukes, but it runs most the key systems and infrastructure of society. It allows quick access to billions of data items via almost any attribute. Before, you had to be selective about which attributes you could search, group, and sort on.
It outlasted and out-competed its competitors such as hierarchical and navigational databases, object databases, and even survived the "no-sql" movement (fad?) by making relatively minor changes to scale better.
It's the "Office Space" Milton of IT: Does most the real work, stuck in the basement, lacks a snazzy interface, and gets no respect.
I've argued there are times when you want to suppress the key, such as giving data to an outside customer where you don't want them to have the internal key. Query languages such as REL that don't allow "bag output" require silly gyrations to remove the key from the output.
As a compromise I have proposed SQL require a clause "ALLOW BAG" before it allows bag output. This would prevent most inadvertent bags. (I'd like similar for "ALLOW CARTESIAN" to prevent inadvertent Cartesian joins. It's a far bigger actual problem than bags, in my experience.) I believe this comprise is good enough and avoids having to totally throw out SQL and start over. (SQL has other annoyances, but REL doesn't solve most in my opinion.)