DEV Community

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

One issue with window functions is that you can't use the resulting value in the WHErE subclause or as a JOIN predicate. However you can get around this by storing the original query in a common table expression and then you CAN use the value as it is now encapsulated in the driving dataset

Collapse
 
helenanders26 profile image
Helen Anderson

Thanks Aaron, that's a great tip :D