27 Feb First Normal Form Assignment Attached Files: ?exampleData.sql (740 B) In this exercise you will:1.) Run the attached SQL scr
First Normal Form Assignment
Attached Files:
exampleData.sql (740 B)
In this exercise you will:1.) Run the attached SQL script "exampleData.sql" in your preferred way (E.g., workbench or from the command line tool in a terminal window.)This script creates a database named FN1 and a table named "VoterData", and loads three rows of data into the table.Notice that the data are not stored in First Normal Form because two of the columns: "address" and "email" are used in a way that makes their data nonatomic. A valid address is hierarchical: street number, street name, city/town name, state, zip code, etc. The email field is used to store more than one email address. (If you want to know more about postal addresses read this: https://en.wikipedia.org/wiki/Address)2.) Watch Caleb Curry's youtube video on First Normal Form (https://www.youtube.com/watch?v=JjwEhK4QxRo) and understand what this means and how he redesigns his database. Notice that the database I gave you is similar to his.3.) Redesign the provided example database so that the email information is in first normal form. This means that you will create a new table called "EmailAddresses" that is specialized for storing email address information, and, it has a foreign key relationship with the VoterData table, etc.
DROP DATABASE IF EXISTS FN1; CREATE DATABASE FN1; USE FN1; DROP TABLE IF EXISTS VoterData; CREATE TABLE VoterData ( ID int NOT NULL AUTO_INCREMENT, fName VARCHAR(128), lName VARCHAR(128), address VARCHAR(255), email VARCHAR(128), PRIMARY KEY (ID) ); INSERT INTO VoterData (fName, lName, address, email) VALUES ("Mary", "Smith", "123 Main Street, Waltham, MA", "[email protected], [email protected]"); INSERT INTO VoterData (fName, lName, address, email) VALUES ("Franz", "Kafka", "PO Box 13, Red Knuckle, MT", "[email protected], [email protected]"); INSERT INTO VoterData (fName, lName, address, email) VALUES ("Primo", "Levy", "123 Elm Street, Milford, NH", "[email protected], [email protected]");
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteEdu. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
Do you need help with this question?
Get assignment help from WriteEdu.com Paper Writing Website and forget about your problems.
WriteEdu provides custom & cheap essay writing 100% original, plagiarism free essays, assignments & dissertations.
With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Chat with us today! We are always waiting to answer all your questions.