Sql Postgresql Optimize Query Performance That Contains Window

Sql Postgresql Optimize Query Performance That Contains Window