Re: sub-sel/group problem - Mailing list pgsql-sql

From Christoph Haller
Subject Re: sub-sel/group problem
Date
Msg-id 3F377226.AA6CF1C0@rodos.fzk.de
Whole thread Raw
In response to sub-sel/group problem  (Gary Stainburn <gary.stainburn@ringways.co.uk>)
List pgsql-sql
>
> 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




pgsql-sql by date:

Previous
From: Gary Stainburn
Date:
Subject: Re: sub-sel/group problem
Next
From: "Eric Anderson Vianet SAO"
Date:
Subject: update system table?