pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Haller <ch@rodos.fzk.de>
To: pgsql-sql@postgresql.org
To: gary.stainburn@ringways.co.uk
Subject: Re: sub-sel/group problem
Date: Mon, 11 Aug 2003 12:38:31 +0200
Message-ID: <3F377226.AA6CF1C0@rodos.fzk.de> (raw)

>
> select r.rtid, concat(r.rcid::text || ' on ' || l.lnumber::text) as
task
>     from rides r, loco_dets l where r.rlid = l.lid group by rtid;
>
Looks like another implicit FROM clause mystery.
Try
... GROUP BY r.rtid ;
The same goes for the JOIN.

Regards, Christoph





view thread (5+ messages)  latest in thread

Message-ID: <3F377226.AA6CF1C0@rodos.fzk.de>
Permalink:  ../3F377226.AA6CF1C0@rodos.fzk.de/
Also on:    postgresql.org/message-id/3F377226.AA6CF1C0@rodos.fzk.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ch@rodos.fzk.de, gary.stainburn@ringways.co.uk
  Subject: Re: sub-sel/group problem
  In-Reply-To: <3F377226.AA6CF1C0@rodos.fzk.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox