News for hackers. Stuff that matters.
Re:For Want of a JOIN by lmm on Thursday December 22, 2022 @11:13PM (#34102270)
> CTEs are quite composable. I might be spoiled by Postgres, but types are quite robust there.

> Replace "NULL" with "unknown" in your head, and the ternary makes more sense. When you're building your schema, does an unknown value make sense in that context? Many times not, and the column should either not be nullable or should be referenced in a different table by a foreign key.

Cool, now how do I do these two incredibly basic things at the same time and make something not nullable or referencing another table in a CTE?

There are no comments on this comment yet.