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 -> Re: Table Design for 2 similar table

Re: Table Design for 2 similar table

From: Brian E Dick <bdick_at_cox.net>
Date: Tue, 17 Dec 2002 13:55:33 GMT
Message-ID: <p1GL9.2513$pe.145800@news2.east.cox.net>


The Ben Franklin rule of data modeling: A table for every thing and a every thing in its table.

From your brief description it sounds like the start and stop events are different things. If so, they belong in different tables. The fact that they have the a couple of common attributes (PK?) and that you want to union their rows, alludes to a possible "type of" relationship.

"Ginger Mall" <bocgco_at_hongkong.com> wrote in message news:3dfeb2c9_at_shknews01...
> I am facing a question on schema design.
>
> There is 2 types of records. The 1st is start record of some activities
> while the other is the stop record.
> They contains actually different attributes except "UserID" and
"DateTime".
> The query will only extract the result by UserID and sort by DateTime.
>
> e.g.
> .. User111 Start .......
> .. User111 Stop .......
> .. User111 Start .......
> .. User111 Stop.......
> .. User111 Start .......
> .. User111 Start .......
> .. User111 Start .......
> .. User111 Stop .......
> .. User111 Start .......
>
>
> My problem is should I split these records into 2 diff. table ?
>
>
Received on Tue Dec 17 2002 - 07:55:33 CST

Original text of this message

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