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 -> best way to to a "union" in a table?

best way to to a "union" in a table?

From: Mark Harrison <mh_at_pixar.com>
Date: Fri, 18 Nov 2005 18:29:27 GMT
Message-ID: <b4pff.16808$7h7.2019@newssvr21.news.prodigy.com>


I have a data structure that I need to represent in a table.

It is a changelist, and the contents of the changelist are either

What's the best way to represent this as an sql table? The obvious way is something like:

changelist_number NUMBER
entry_type -- either MODIFY or NEW identifier NUMBER -- if entry_type is MODIFY filepath VARCHAR -- if entry_type is ADD

Am I going down the right path?

Many TIA!
Mark

-- 
Mark Harrison
Pixar Animation Studios
Received on Fri Nov 18 2005 - 12:29:27 CST

Original text of this message

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