News for hackers. Stuff that matters.
Re:SQL: The difference between WHERE and HAVING by housecarpenter on Tuesday December 14, 2021 @10:06AM (#29552300)
In the relational model used by SQL, types are atomic. Sum types are inherently non-atomic. I'm sure you could graft them onto the language, the same way Postgres can have JSON type fields and all that, but I don't think you'd be able to really integrate them into SQL without fundamentally changing what kind of language SQL is.
Re:SQL: The difference between WHERE and HAVING by wyager on Tuesday December 14, 2021 @09:37PM (#29561397)
The query algebra is completely compatible with sum types. I don't think "atomic" is describing anything central to the QA model.