Re: need some more select help

From: A B <gentosaker(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: need some more select help
Date: 2009-07-17 08:42:07
Message-ID: dbbf25900907170142v60c0dc83la7a07e89a7c8cdde@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

> As the error indicates, you must give an alias for subquery
>
> select a,count(1) FROM (select a from X UNION select a from Y ) as
> your_alias_name group by a;

Ohh, I see. I completly misunderstood it earlier.
Thanks for clearing that up :-)

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message ...tharas 2009-07-17 08:43:55 Re: need some more select help
Previous Message thara 2009-07-17 08:34:24 Re: need some more select help