Results 1 to 3 of 3

Thread: Does this violate first normal form?

  1. #1

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Does this violate first normal form?

    I'm attempting to normalize a table that looks similar to this
    Code:
    Caller
    Caller Address Block
    Caller Address Street
    Caller Address City
    Location
    Location Address Block
    Location Address Street
    Location Address City
    Occurance
    Occurance Address Block
    Occurance Address Street
    Occurance Address City
    My first step was to get rid of the obvious and make it look like
    Code:
    Caller
    Caller Address ID
    Location
    Location Address ID
    Occurance
    Occurance Address ID
    When I look at that, it seems that several "...Address ID" columns qualifies as a repeating field. Should I move those into another table?

    Thanks,
    Mike

  2. #2
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Does this violate first normal form?

    If they are distinctly different address id's having nothing to do with each other, then in a way they are not repeating fields. Anymore than FIRSTNAME and LASTNAME are not repeating fields.

    But you could also say that having an "address" table, where you key with whatever the primary key of this table is (you don't mention that) and have a sequence number or address type might be more helpful for you to maintain and code against.

    In our student applications we have the MARKING PERIOD 1, MARKING PERIOD 2, MARKING PERIOD 3, MARKING PERIOD 4 and FINAL MARK all in the table table. I've seen designs that did not do this - but they had 500 tables - and we replaced them with our design

  3. #3

    Thread Starter
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Re: Does this violate first normal form?

    Thanks for the clarification. I wasn't sure whether that would be considered repeating or not, to me it seems ok. In a way it's similar to your MARKING PERIODs. And yes, there will be an address table.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width