Re: Query question

From: "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk>
To: Björn Metzdorf <bm(at)turtle-entertainment(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Query question
Date: 2002-11-28 14:11:26
Message-ID: Pine.LNX.4.21.0211281410000.12039-100000@ponder.fairway2k.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Just move table3 s to be last table specified before the left join phrase.

--
Nigel J. Andrews

On Thu, 28 Nov 2002, Björn Metzdorf wrote:

> Hi,
>
> This version should theoretically do what I want, but it does not work (it
> gives "ERROR: Relation "s" does not exist"):
>
> ------ snip -------
> SELECT m.*
> FROM table1 m,
> table2 ms,
> table3 s,
> table4 l
> LEFT JOIN table5 c ON s.id = ms.slot
> WHERE m.id = 262451
> AND ms.value2 = m.id
> AND l.id = m.value
> AND c.id = s.contestant
> ORDER BY m.date ASC
> ------ snap -------
>
>
> Thanks for your help.
>
> Regards,
> Bjoern

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message suresh s 2002-11-28 14:13:52 DATABASE VEERSIONING ?
Previous Message Björn Metzdorf 2002-11-28 13:59:19 Query question