Postgresql Pivot Function In Excel