Postgres Window Functions Postgresql Create Table Statement