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

Home -> Community -> Usenet -> c.d.o.misc -> DB Design question

DB Design question

From: <foobar71_at_my-deja.com>
Date: Fri, 25 Feb 2000 22:29:18 GMT
Message-ID: <896vno$cfp$1@nnrp1.deja.com>


Hello all,

Help me settle this once and for all. (a colleague and myself are debating this)

If you were designing tables to handle the following, how would you do it?

We want to create tables to track a newsletter, and the articles in the newsletter. We also want to track any revisions on the article table.

i.e.... current newsletter is newsletter volume 5 article 1 revision 2 we also want to be able to pull newsletter volume 5 article 1 revision 1 (the original cut of the article)

Would you put the revision data in the article table, or create a revision table to handle the "old" articles, and why?

Store article revisions in artlcle table:

Parent table:
name Newsletter
col1 newsletter_id
col2 created_by
col3 created_on

Child table:
name Newsletter_articles
col1 newsletter_id
col2 article_id
col3 article_text
col4 revision_number

Store article revisions in article revison table:

Parent table:
name Newsletter
col1 newsletter_id
col2 created_by
col3 created_on

Child table:
name Newsletter_articles
col1 newsletter_id
col2 article_id
col3 article_text

Child table:
name Newsletter_revision
col1 newsletter_id
col2 article_id
col3 revision_id
col4 revision_text

TIA,
Foo

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Fri Feb 25 2000 - 16:29:18 CST

Original text of this message

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