Re: What is the alternate of FILTER below Postgresql 9.4?

From: Arup Rakshit <tuka(dot)08(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: What is the alternate of FILTER below Postgresql 9.4?
Date: 2015-02-24 16:34:35
Message-ID: 20359439.IPQ8IlueGE@linux-wzza.site
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday, February 24, 2015 06:14:53 PM Andreas Kretschmer wrote:
> Arup Rakshit <aruprakshit(at)rocketmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Arup Rakshit 2015-02-24 16:38:31 Re: What is the alternate of FILTER below Postgresql 9.4?
Previous Message Arup Rakshit 2015-02-24 16:29:23 Re: What is the alternate of FILTER below Postgresql 9.4 ?