Re: What is the alternate of FILTER below Postgresql 9.4? - Mailing list pgsql-general

From Arup Rakshit
Subject Re: What is the alternate of FILTER below Postgresql 9.4?
Date
Msg-id 20359439.IPQ8IlueGE@linux-wzza.site
Whole thread Raw
In response to Re: What is the alternate of FILTER below Postgresql 9.4 ?  (Andreas Kretschmer <akretschmer@spamfence.net>)
List pgsql-general
On Tuesday, February 24, 2015 06:14:53 PM Andreas Kretschmer wrote:
> Arup Rakshit <aruprakshit@rocketmail.com> wrote:
>
> > This *FILTER* method is available from 9.4, How can I get the same output below 9.4 version ?
>
>
> case when ...
>
> see:
> http://www.cybertec.at/postgresql-9-4-aggregation-filters-they-do-pay-off/
>
> Andreas
>

Humm. It is the one I wanted. But I used it, with group by, which is why I got 2 rows output.

Thanks!!

--
================
Regards,
Arup Rakshit
================
Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as
possible,you are, by definition, not smart enough to debug it. 

--Brian Kernighan


pgsql-general by date:

Previous
From: David Steele
Date:
Subject: Re: Row-level Security vs Application-level authz
Next
From: Guillaume Drolet
Date:
Subject: Re: Sequences not moved to new tablespace