SQLAlchemy Joining 2 CTE Results in Ambiguous ON Clause – Postgresql
I'm attempting retrieve a max version for either a published version or, if a resource has no published versions, the highest version. I'm using 3 CTE to find these values, one to get the max version that is published, a…