News for hackers. Stuff that matters.
Re:Ask HN: Does anyone else think SQL needs help? by ttfkam on Monday September 12, 2022 @11:51AM (#32812133)
True, but you can simulate it by running the query with the window function in a CTE and then make a separate SELECT with the appropriate WHERE clause. More verbose, but the same effect and result. Using NOT MATERIALIZED on the CTE can also potentially let the planner do better query optimization on it.

There are no comments on this comment yet.