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: Primary & Foreign key constraints

RE: Primary & Foreign key constraints

From: Jared Still <jkstill_at_bcbso.com>
Date: Wed, 24 May 2000 09:27:43 -0700 (PDT)
Message-Id: <10507.106547@fatcity.com>


I think that any new OLTP application should be designed with RI in the database.

I'll go even further and state that most of the application logic should be in the database as well.

With Data Marts ( maybe Data Warehouses also ), the picture is somewhat cloudy.

Your DW may not need RI. The DM likely will though so that Star Joins will work. The RI does not have to be enforced however, it just needs to exist for the optimizer to work properly.

Jared

On Wed, 24 May 2000, Abdul Aleem wrote:

> Jared,
>
> I do not think, I practice ;). The tables in a database should have a PK to
> uniquely identify each record. Then comes normalization. For normalized
> tables, you have to have a FK. These are the basic RDBMS rules. Unless some
> has not learnt them or forget ;)
>
> Now if you tell me what purpose does a database without RI solves, AND what
> do you THINK?
>
> Regards,
>
> Aleem
>
>
> On Mon, 22 May 2000, Abdul Aleem wrote:
>
> > There are no merits to this practice. I would say that the
> person who
> > designs a database without FK and PK is highly
> unprofessional (an idiot) and
> > has absolutely no idea of RDBMS design. This can lead to
> current and future
> > problems.
>
>
> Come on Abdul, tell us what you really think! ;)
>
>
> Jared Still
>
> --
> Author: Abdul Aleem
> INET: abchaudhary-ho_at_beaconhouse.edu.pk
>
> 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).
>

Jared Still
Certified Oracle DBA and Part Time Perl Evangelist ;-) Regence BlueCross BlueShield of Oregon
jkstill_at_bcbso.com - Work - preferred address Received on Wed May 24 2000 - 11:27:43 CDT

Original text of this message

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