Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Database design question
Karsten Farrell wrote:
> andyho99_at_yahoo.com said...
>
>>Hi, >> >>We are converting legacy files into Oracle database. Through >>normalization process, we have a parent table and several child tables >>associated with it. Only parent table contains the unique key >>(combination of 5 columns). The child tables have an Oracle sequence >>number associated with parent table but without these 5 columns. This >>worries me a little. If there is anything wrong on the logic to build >>Oracle sequence numbers in the parent and child tables. The records in >>the child tables may never find its parent record. >> >>What's the pro and com of this design? One obvious advantage is space >>saving. What do the most people do for this kind of situation? Thanks. >>
Well, to add a different perspective (not that I totally oppose sequence numbers), but there is the danger with them of breaking links. Since they are a pseudo-key, there is no way to be 100% sure just from the SEQ# key that the conversion completed correctly.
What Karsten said about a good data model, is the real key to success. If you (andyho99) use SEQ#'s merely to save space, you are thinking about the problem in the wrong way. Hopefully you have Business Analysts to verify the data integrity after conversion. You do plan to verify the new data don't you?
-- Ed Prochak running http://www.faqs.org/faqs/running-faq/ netiquette http://www.psg.com/emily.html -- "Two roads diverged in a wood and I I took the one less travelled by and that has made all the difference." robert frostReceived on Wed May 14 2003 - 23:24:12 CDT
![]() |
![]() |