Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: Join - Mailing list pgsql-sql

From Kristofer Munn
Subject Re: Join
Date
Msg-id [email protected]
Whole thread Raw
In response to Join  (Craig May <[email protected]>)
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