Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Column name

Re: Column name

From: paquette stephane <stephane_paquette_at_yahoo.com>
Date: Fri, 27 Apr 2001 04:46:50 -0700
Message-ID: <F001.002F3F15.20010427033645@fatcity.com>

Yes you can use the same column name in a database and in a schema. The only thing is that you have to precede the field with the table name when you're joining 2 tables containing columns with the same name.

Let's open a can of worm.

There are 2 stands on this :
1. Something should have the same name everywhere in the DB. For example, product_id should be product_id in the product table and in the monthly sales table.

2. Each column should be prefix by the table abbreviation so in the product table it is prd_product_id and in the monthly sales table something like mthlysl_product_id.

Personnaly, I prefer the first one.


Stéphane Paquette
DBA Oracle, consultant entrepôt de données Oracle DBA, datawarehouse consultant
stephane_paquette_at_yahoo.com

Do You Yahoo!? -- Pour faire vos courses sur le Net, Yahoo! Shopping : http://fr.shopping.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?iso-8859-1?q?paquette=20stephane?=
  INET: stephane_paquette_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Apr 27 2001 - 06:46:50 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US