4 ms·
People really like to associate relational algebra with SQL, probably because they learned them one alongside another. But SQL is really terrible relational lan
by aerzen 3y ago
People really like to associate relational algebra with SQL, probably because they learned them one alongside another. But SQL is really terrible relational language - it breaks a few core concepts in different places, like relations being unordered sets, that you can ORDER BY. This bubbles up as relations losing ordering after being wrapped into a subquery, which is really unexpected.
PRQL has a data model very similar to the relational one. The only big difference is that relations are ordered - they are defined as arrays of tuples. So let's hope that PRQL gets to be known as "the relational language Mk II"
- cmrdporcupine 3y agoSeems like you'd have to break quite a few relational model concepts in order to retain compatibility with SQL, no? Ordered tuples like you say, but also duplicate tuples. And null values.