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. >>
Phew! for a moment I had a fear you were going to defend "intelligent"
keys. I once worked for a company, where my employee number was 927448.
92 stood for Holland/XXXX division, 7 for indirect (white collar), 4
for male, married, 48 for the number of times per week I .. - no, not
really. But you get the picture.
Guess what needed to be done to all systems when a Danish bloke
(4300...) was transferred to our division?
Never, ever use intelligent keys - my IT mentor hammered that in.
You will always, always (need I say it once more?) end up in a
situation not covered. See above example.
BTW, this was a multi national, so growth, expected or not, was
not an excuse.
-- Regards, Frank van BortelReceived on Thu May 15 2003 - 14:14:51 CDT
![]() |
![]() |