Hello
This question directly relates to a previous topic "MySQL - move from flat table to first normal form" (http://bit.ly/9pvS0Y) - and as I am now asking a question about moving to second and third normal forms, I figured it best to start a new topic.
Below is my first normal form schema which I am pretty sure is solid enough for my purposes, but please correct me if I am wrong.
I would like to know how to move this through to the second and third forms, any pointers as to how my tables would be affected by 2NF and 3NF rules would be really useful, thanks.
Relationships
-Activity and Location relationship = one to many - one activity can have one location, a location can have many activities (LocationID as FK in Activity)
-Activity and Week relationship = one to many - one activity can have one week, a week can have many activities (WeekID as FK in Activity)
-User and Activity = many to many - one user can have many activities, one activity can have many users
User Table - UserID PK
+------------+-----------+
| UserID | Username |
+------------+-----------+
| | |
+------------+-----------+
Activity Table - ActivityID PK / WeekID FK / LocationID FK
+------------+-----------+------------+-----------+------------+-------------+-----------+
| ActivityID | UserID | WeekID | Day | Minutes | LocationID | Miles |
+------------+-----------+------------+-----------+------------+-------------+-----------+
| | | | | | | |
+------------+-----------+------------+-----------+------------+-------------+-----------+
Location Table - LocationID PK
+------------+---------------+
| LocationID | Location_Name |
+------------+---------------+
| | |
+------------+---------------+
Weeks Table - Week ID PK
+------------+-----------+
|WeekID | Week_No |
+------------+-----------+
| | |
+------------+-----------+
User_Activity Table
+------------+---------------+
| UserID | ActivityID |
+------------+---------------+
| | |
+------------+---------------+