Re: Storing computed values

From: Colin Wetherbee <cww(at)denterprises(dot)org>
To: Richard Broersma <richard(dot)broersma(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Storing computed values
Date: 2008-04-21 18:08:23
Message-ID: 480CD817.2090204@denterprises.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Colin Wetherbee wrote:
> SELECT connect(p_start.location, p_end.location)
> FROM foo
> JOIN points AS p_start ON foo.point_id_start = points.point_id
> JOIN points AS p_end ON foo.point_id_end = points.point_id
> WHERE foo.id = 8192;

As I didn't test this code, my syntax was slightly incorrect.

JOIN ... ON ... = p_start.point_id
JOIN ... ON ... = p_end.point_id

Colin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Sullivan 2008-04-21 18:12:27 Re: In the belly of the beast (MySQLCon)
Previous Message Colin Wetherbee 2008-04-21 18:02:45 Re: Storing computed values