Postgres Window Functions Postgresql Database Example