From: | Michael Davis <mdavis(at)sevainc(dot)com> |
---|---|
To: | "'Stephan Richter'" <srichter(at)cbu(dot)edu>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org> |
Subject: | RE: Joining several tables |
Date: | 2001-01-22 18:00:23 |
Message-ID: | 01C08462.886C1520.mdavis@sevainc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
1) Select t1.* from table_1 t1, table2 t2 where t1.column = t2.column;
2) Select t1.* from table_1 t1 join table2 t2 on t1.column = t2.column;
-----Original Message-----
From: Stephan Richter [SMTP:srichter(at)cbu(dot)edu]
Sent: Sunday, January 21, 2001 11:20 PM
To: pgsql-sql(at)postgresql(dot)org
Subject: Joining several tables
Hello, I have the following situation:
I have an Address, PhoneNumber and Contact table all having a contactid in
common, but sometimes the phone number does not exist.
I want to join these three tables. How do I do that? I could not find the
syntax for multiple tables...
Regards,
Stephan
--
Stephan Richter
CBU - Physics and Chemistry Student
Web2k - Web Design/Development & Technical Project Management
From | Date | Subject | |
---|---|---|---|
Next Message | Jan Wieck | 2001-01-22 22:19:48 | Re: unreferenced primary keys: garbage collection |
Previous Message | john whale | 2001-01-22 17:29:49 | DATE |