From jkanter@virginia.edu Mon Nov 4 19:35:35 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 276C0475C9E for ; Mon, 4 Nov 2002 14:35:35 -0500 (EST) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by postgresql.org (Postfix) with SMTP id 531E5475BA1 for ; Mon, 4 Nov 2002 14:35:34 -0500 (EST) Received: from smtp.mail.virginia.edu by mail.virginia.edu id aa00338; 4 Nov 2002 14:35 EST Received: from jlk3xpc (d-128-19-222.bootp.Virginia.EDU [128.143.19.222]) by smtp.mail.Virginia.EDU (8.11.6/8.11.6) with SMTP id gA4JZDr39480 for ; Mon, 4 Nov 2002 14:35:13 -0500 Message-ID: <01dd01c28439$a48de480$de138f80@virginia.edu> From: Jodi Kanter To: Postgres Admin List Subject: joins Date: Mon, 4 Nov 2002 14:37:42 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01DA_01C2840F.BB949D10" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/45 X-Sequence-Number: 6233 This is a multi-part message in MIME format. ------=_NextPart_000_01DA_01C2840F.BB949D10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Can anyone tell me if there is any real difference between the two differen= t ways to create tables joins? select field1, field2 from table1 join table2 using (field3) vs. select field1, field2 from table1, table 2 where table1.field3=3Dtable2.fie= ld3 Thanks Jodi =20=20 _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu =20 =20 =20 ------=_NextPart_000_01DA_01C2840F.BB949D10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Can anyone tell me if there is any real= =20 difference between the two different ways to create tables joins?
 
select field1, field2=20 from table1 join table2 using=20 (field3)
 
vs.
 
select field1, field2=20 from table1, table 2 where=20 table1.field3=3Dtable2.field3
 
Thanks
Jodi
  

_______________________________
Jodi=20 L Kanter
BioInformatics Database Administrator
University of=20 Virginia
(434) 924-2846
jkanter@virginia.edu

 

 

 

<= /DIV> ------=_NextPart_000_01DA_01C2840F.BB949D10-- From jkanter@virginia.edu Mon Nov 4 20:00:39 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 333054766CB for ; Mon, 4 Nov 2002 15:00:39 -0500 (EST) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by postgresql.org (Postfix) with SMTP id 1B5D047669C for ; Mon, 4 Nov 2002 15:00:34 -0500 (EST) Received: from smtp.mail.virginia.edu by mail.virginia.edu id ab22595; 4 Nov 2002 14:59 EST Received: from jlk3xpc (d-128-19-222.bootp.Virginia.EDU [128.143.19.222]) by smtp.mail.Virginia.EDU (8.11.6/8.11.6) with SMTP id gA4Jxsr30056 for ; Mon, 4 Nov 2002 14:59:54 -0500 Message-ID: <01f401c2843d$174032f0$de138f80@virginia.edu> From: Jodi Kanter To: Postgres Admin List Subject: Fw: joins Date: Mon, 4 Nov 2002 15:02:23 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01F1_01C28413.2E00BAC0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/46 X-Sequence-Number: 6234 This is a multi-part message in MIME format. ------=_NextPart_000_01F1_01C28413.2E00BAC0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable MessageI think this was meant for the list (see below). ----- Original Message -----=20 From: tachung_h=20 To: 'Jodi Kanter'=20 Sent: Monday, November 04, 2002 2:44 PM Subject: RE: [ADMIN] joins I need to work with a group of volunteer developers over the Internet. Deve= lopers might be using Window 2000, XP or Linux and produce programs in Tomc= at/Java. Is it practical to think that developers would develop with a Post= greSQL database over the Web? This is a development environment, there is n= o proprietary data in the database. =20 =20 Regards=20 TaChung Huang (=B6=C0=A4j=A9=BE)=20 -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgres= ql.org] On Behalf Of Jodi Kanter Sent: Monday, November 04, 2002 11:38 AM To: Postgres Admin List Subject: [ADMIN] joins Can anyone tell me if there is any real difference between the two differ= ent ways to create tables joins? select field1, field2 from table1 join table2 using (field3) =20=20=20 vs. select field1, field2 from table1, table 2 where table1.field3=3Dtable2.f= ield3 Thanks Jodi =20=20=20=20 _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu =20=20=20 =20=20=20 =20=20=20 ------=_NextPart_000_01F1_01C28413.2E00BAC0 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable Message
I think this was meant for the list (se= e=20 below).
 
 
----- Original Message -----=20
From: tachung_h
Sent: Monday, November 04, 2002 2:44 PM
Subject: RE: [ADMIN] joins

I need to work with a group of volunteer develo= pers=20 over the Internet. Developers might be using Window 2000, XP or Linux and= =20 produce programs in Tomcat/Java. Is it practical to think that developers w= ould=20 develop with a PostgreSQL database over the Web? This is a development=20 environment, there is no proprietary data in the database.
 
 
<= FONT=20 face=3D"Century Schoolbook">

Regards
TaChung Huang

-----Original Message-----
From:=20 pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org= ]=20 On Behalf Of Jodi Kanter
Sent: Monday, November 04, 2002= =20 11:38 AM
To: Postgres Admin List
Subject: [ADMIN]=20 joins

Can anyone tell me if there is any re= al=20 difference between the two different ways to create tables joins?<= /DIV>
 
select field1, field2=20 from table1 join table2 using=20 (field3)
 
vs.
 
select field1, field2=20 from table1, table 2 where=20 table1.field3=3Dtable2.field3
 
Thanks
Jodi
  

_______________________________
Jodi=20 L Kanter
BioInformatics Database Administrator
University of=20 Virginia
(434) 924-2846
jkanter@virginia.edu
<= SPAN=20 style=3D"FONT-FAMILY: Arial; FONT-SIZE: 11pt; mso-bidi-font-size: 12.0pt;= mso-fareast-font-family: 'MS Mincho'">

 

 

 

------=_NextPart_000_01F1_01C28413.2E00BAC0-- From xzilla@users.sourceforge.net Tue Nov 5 17:35:13 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B1A7A4767B4 for ; Tue, 5 Nov 2002 12:35:13 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id 25CEF476783 for ; Tue, 5 Nov 2002 12:35:11 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id gA5HaHCP008945; Tue, 5 Nov 2002 12:37:17 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id gA5Hcgj24230; Tue, 5 Nov 2002 12:38:42 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id WKD4ZGVC; Tue, 5 Nov 2002 11:38:33 -0500 Subject: Re: Fw: joins From: Robert Treat To: tachung_h@yahoo.com Cc: Postgres Admin List In-Reply-To: <01f401c2843d$174032f0$de138f80@virginia.edu> References: <01f401c2843d$174032f0$de138f80@virginia.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 05 Nov 2002 11:38:41 -0500 Message-Id: <1036514321.4557.81.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/57 X-Sequence-Number: 6245 There's no technical reason why you can't do development this way, just make sure that each development site has access to the database (via pg_hba.conf) and perhaps the server as well (to view log output and such) Robert Treat > ----- Original Message ----- > From: tachung_h > To: 'Jodi Kanter' > Sent: Monday, November 04, 2002 2:44 PM > Subject: RE: [ADMIN] joins > > I need to work with a group of volunteer developers over the Internet. > Developers might be using Window 2000, XP or Linux and produce programs > in Tomcat/Java. Is it practical to think that developers would develop > with a PostgreSQL database over the Web? This is a development > environment, there is no proprietary data in the database. > From bruno@wolff.to Wed Nov 6 00:52:07 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C781E475E83 for ; Tue, 5 Nov 2002 19:52:07 -0500 (EST) Received: from wolff.to (unknown [66.93.197.35]) by postgresql.org (Postfix) with SMTP id 18A31475E4D for ; Tue, 5 Nov 2002 19:52:07 -0500 (EST) Received: (qmail 5804 invoked by uid 500); 6 Nov 2002 01:01:40 -0000 Date: Tue, 5 Nov 2002 19:01:40 -0600 From: Bruno Wolff III To: Jodi Kanter Cc: Postgres Admin List Subject: Re: joins Message-ID: <20021106010140.GA5458@wolff.to> Mail-Followup-To: Jodi Kanter , Postgres Admin List References: <01dd01c28439$a48de480$de138f80@virginia.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01dd01c28439$a48de480$de138f80@virginia.edu> User-Agent: Mutt/1.3.25i X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/62 X-Sequence-Number: 6250 On Mon, Nov 04, 2002 at 14:37:42 -0500, Jodi Kanter wrote: > Can anyone tell me if there is any real difference between the two different ways to create tables joins? > > select field1, field2 from table1 join table2 using (field3) > > vs. > > select field1, field2 from table1, table 2 where table1.field3=table2.field3 The first form fixes the join order while the second allows the planner to choose what order to do the joins in. For just two tables this doesn't make a difference.