DEV Community

[Comment from a deleted post]
Collapse
 
aarone4 profile image
Aaron Reese

Not being able to use windowed values (rank, lead lag etc) to filter in the base query, but the query engine is quite happy when you wrap the query in a WITH CTE AS (...) and then filter on windowed field when you SELECT * FROM CTE.