Re: Join - Mailing list pgsql-sql

From Kristofer Munn
Subject Re: Join
Date
Msg-id Pine.LNX.4.10.10009071002080.1998-100000@munn.com
Whole thread Raw
In response to Join  (Craig May <craig.may@s2.enthdimension.com.au>)
List pgsql-sql
> I'm having trouble with this statement, could someone help out please.
> 
> Select g.ID From Grouping g join Entity_Grouping eg on
> g.ID=eg.Group_ID where eg.Entity_ID=1

Try

select g.ID from Grouping g, Entity_Grouping eg where g.ID = eg.Group_ID
and eg.Entity_ID = 1;

That's not the join syntax you were using but that should do the trick.

- K

Kristofer Munn * KMI * 732-254-9305 * AIM KrMunn * http://www.munn.com/



pgsql-sql by date:

Previous
From: Craig May
Date:
Subject: Join
Next
From: "Gerhard Dieringer"
Date:
Subject: Antw: Join