Re: Select from multiple tables - Mailing list pgsql-general

From Jon Earle
Subject Re: Select from multiple tables
Date
Msg-id Pine.LNX.4.55.0306061600130.19934@kronos.honk.org
Whole thread Raw
In response to Select from multiple tables  (Jon Earle <je_pgsql@kronos.honk.org>)
List pgsql-general
On Fri, 6 Jun 2003, scott.marlowe wrote:

> You probably want a join or a sub select.
>
> Or is it more complex than that?

Thank you to everyone who responded to my (very simple) question.  Yes, it
was a subselect type op I wanted to do, but I didn't know that that was
what it was called.

I ended up with a query such as:

select table1.id2, fld2, table2.fld3
from table1, table2
where id = '1'
and table1.id2 = table2.id2
and fld2 > 0;

Cheers!
Jon

--
Jon Earle

SAVE FARSCAPE http://www.savefarscape.com/

pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Possible bug in CREATE INDEX? Was: Re: Create index
Next
From: Lynna Landstreet
Date:
Subject: Special characters in varchar/text fields