Re: error joining 2 views containing GROUP BYs

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "david morgan" <davidmorgan(at)computerweekly(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: error joining 2 views containing GROUP BYs
Date: 2001-03-13 04:20:55
Message-ID: 17919.984457255@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"david morgan" <david_morgan(at)s4c(dot)co(dot)uk> writes:
> I am having a few problems using a select query which joins two views
> containing aggregate functions (see query 1 below).

I don't think there's any chance of making that work in pre-7.1
Postgres. Sorry :-(.

As a workaround, consider selecting the grouped data into temp tables
and then joining the temp tables.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Bayet 2001-03-13 06:36:08 Use of the LIMIT clause ?
Previous Message Cliff Crawford 2001-03-13 03:49:12 Re: SQL Dummy Needs Help