Re: Select from multiple tables

From: Jon Earle <je_pgsql(at)kronos(dot)honk(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Select from multiple tables
Date: 2003-06-06 20:08:08
Message-ID: Pine.LNX.4.55.0306061600130.19934@kronos.honk.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lynna Landstreet 2003-06-06 20:20:16 Special characters in varchar/text fields
Previous Message The Hermit Hacker 2003-06-06 20:07:10 Re: [GENERAL] Anonymous CVS access