Explain why normal forms were defined. What problems are solved by using them?
Provide an example table that violates at least one normal form and explain how you would rebuild this table to make it comply with it. (Hint: you can use any online tool and take screen shots.)
Foreign Keys:
Explain why foreign keys are used. What problems can be solved by using them? (25 points)
Identify a foreign key from the “classic models” tutorial and:
explain how it works, i.e., which tables does it connect, etc. (12 1/2 points)
what would be the practical implication of removing this foreign key relationship that you chose. Things to consider include: data duplication, data inconsistency, orphaned data, etc. (12 1/2 points)
Normal forms are guidelines used to design relational databases which help ensure that data is stored efficiently, accurately, and securely. The most common normal forms (1NF, 2NF and 3NF) were first developed by Edgar F. Codd in the 1970s with each successively more complex form addressing specific issues such as redundancy or inconsistencies (Navathe et al.).
The 1st Normal Form (1FN) requires all columns in a table to have unique identifiers while also preventing multiple values from being stored within a single column. This ensures that there is no redundant data entry which can lead to discrepancies between records—such as one record using ‘Mr Smith’ for a name and another using ‘Smith Mr’ —and helps protect against data loss due to accidental deletions.
The 2nd Normal Form (2NF) builds upon this by removing any partial dependencies between two tables —so that if an attribute from table A depends on an attribute from table B , then it should be deleted from A . This prevents unnecessary duplication of information and ensures accurate representation of relationships between different elements of the database.
Finally, the 3rd Normal Form (3FN) focuses on ensuring that every non-key field only refers back to the primary key —preventing orphaned records where changes made in one place do not propagate correctly throughout other parts of the database.
To illustrate these concepts let us consider an example table called StudentCourse mapped below. This table violates 1st normal form because Name is included twice—once for FirstName and once for LastName—meaning we cannot rely on its uniqueness when searching for records or making updates . To make this compliant with 1 FN , we could separate out Name into three distinct fields : StudentID , FirstName and LastName . We would also need to add additional columns like CourseID so that our primary keys are properly defined . Our revised version might look like this:
Anne Frank needs a mother and a father to be born and that makes up a family. Anne’s mother was a tall broad woman that was married to Otto Frank. Otto and Edith had a daughter 3 years before Anne. Her name was Margot Frank. They lived together until the concentration camps. Otto was a wealthy businessman and ended up owning his own company. Mrs Frank was a stay home mom who would hold big parties there would be beef stew and bread and always pastries. Anne’s sister was everyone’s favorite. She never threw a fit or made a scene, yes she was the perfect child. In my opinion Anne had a loving family that always loved her.
Life before imprisonment was good. They didn’t have to worry about Germans or discrimination. Life was great for the Frank family and the other Jews.
Anne was born in Germany and had lots of memorable moments. She didn’t have to worry about Germans or discrimination. She could go to school with all the other kids and go see a movie with her family. With all the big cities like Hamburg, Bremen, Frankfurt, Munich, and East Prussia. Amsterdam had to be the most known with so many tourist attractions. I wish I could go and see Germany when I’m older so I can see the hiding place of Anne Frank.
Anne Frank moved to the Netherlands with her family for freedom from Germany. They moved hoping to get out of Hitler’s control but then Hitler took over almost all of Europe. But before that things were good. Anne was in school as well as Margot and Otto had a business to run. Anne also had many friends at school and never thought of Hitler being a threat. I wonder if Anne went to see the flowers a lot. She once said she used to take it all for granted and that she missed the flowers.
Adolf Hitler comes to power. Hitler hated anyone who was not German and even then still didn’t trust everyone and even killed thousands of his own soldiers. He particularly discriminated against Jews. He would torture, beat, and killed millions of Jews so he could take over Germany.
Nazi parties were held in celebration of Adolf Hitler and his coming to power. People and children were taught to celebrate and appreciate the things that Hitler did and many didn’t question it. Children would give him flowers and teens would play in bands at the Nazi parties. It annoys and aggravates me to think about Hitler wanting fame for persecuting and killing Jews. Hitler was quoted saying in m