If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Normalization: is this considered 1NF?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-09-09, 01:43
ianhollings ianhollings is offline
Registered User
 
Join Date: May 2009
Posts: 1
Normalization: is this considered 1NF?

Hi guys,

I'm new to the board, I was working on the process of Normalization and was wondering whether this database is in 1NF or not?

I think it is, but I could be wrong. The database is based on tables similar to Netflix.
Attached Thumbnails
Normalization: is this considered 1NF?-test.jpg  
Reply With Quote
  #2 (permalink)  
Old 05-09-09, 02:57
dportas dportas is offline
Registered User
 
Join Date: Dec 2007
Location: London, UK
Posts: 732
A database is said to be in 1NF if it accurately models some relation schema, i.e: every table enforces at least one candidate key and every tuple requires exactly one value for each attribute. In SQL, nulls are sometimes permitted but there is no sound basis for saying that nullable tables conform to 1NF because nulls stray outside formal and consistent definitions of relations and normal forms.
Reply With Quote
  #3 (permalink)  
Old 05-09-09, 03:09
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by ianhollings
... wondering whether this database is in 1NF or not?
no, because not every table has a PK

also, the film-collection relationship looks like many-to-many in the diagram, and that will require an association/relationship table between them, in order to avoid another 1NF violation

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book

Last edited by r937; 05-09-09 at 03:13.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On