News for hackers. Stuff that matters.
Re:Friendlier SQL with DuckDB by aljazmerzen on Thursday May 12, 2022 @05:38PM (#31360433)
That's true - when you hit 4th CTE you are probably doing something wrong.

But not always. Some analytical queries may actually need such complexity. Also, during development, you would sometimes pick only first 50 rows before joining and grouping, with intention of not overloading the db. To do this you need a CTE (or nested select), but in PRQL you just add a `take 50` transform to the top.

There are no comments on this comment yet.