pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jodi Kanter <jkanter@virginia.edu>
To: Postgres SQL List <pgsql-sql@postgresql.org>
Subject: join syntax
Date: Tue, 17 Jun 2003 14:44:00 -0400
Message-ID: <3EEF6170.1040905@virginia.edu> (raw)

One of my colleagues has created a database where he has the same field 
name in two tables and uses this field to link his tables rather than 
some arbitrary value. For example, he has used "exp_id" in two tables. 
When writing his joins he uses a syntax that says something like JOIN ON 
EXP_ID. Can someone tell me what that syntax should be? I am not very 
familiar with it since I typically use the syntax where one field is set 
equal to the other.
Personally I prefer not to set databases up this way but cannot seem to 
convince him of this. And yet I am supposed to now help him with his 
database and application.. Is there some documentation that would define 
this type of syntax? How is this handled if you have more than one table 
in the join? It does not appear that this format would allow for this.
Thanks
Jodi
-- 

_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu <mailto:jkanter@virginia.edu>

 

 

 

view thread (5+ messages)  latest in thread

Message-ID: <3EEF6170.1040905@virginia.edu>
Permalink:  ../3EEF6170.1040905@virginia.edu/
Also on:    postgresql.org/message-id/3EEF6170.1040905@virginia.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jkanter@virginia.edu
  Subject: Re: join syntax
  In-Reply-To: <3EEF6170.1040905@virginia.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox