The tables from the third normalized form

Assignment Help Database Management System
Reference no: EM131649707

Introduction:

For this assessment, you will be creating models, databases, tables, and query reports for a smartphone application. To complete this assessment, you will be using MySQL to test and run a database application that you will develop for parts C through G.

After running the code, take a screenshot of your results and paste the screenshot into the document that you will submit to TaskStream for this assessment.

The work you complete for each part of the assessment (i.e., the design models/diagrams, tables, written explanations, SQL script code, and screenshot results from running your SQL scripts in a SQL tool) should be saved as a single *.pdf (Portable Document Format) file that you will submit to TaskStream.

Note: If you do not have access to a database tool, you may use SQL Fiddle (an online SQL tool) to complete this assessment. The tool can be accessed. Instructions for how to use SQL Fiddle for each part of the assessment are included in the attached document "SQL Fiddle Instructions." Please note that for each part of the assessment, there are explicit instructions on what SQL code you will need to copy and paste into SQL Fiddle panels to run your test.

Scenario:

You are the database designer and developer for a donut shop that wants to create a smartphone application where customers can order donuts. First, you will design a normalized entity-relationship (E-R) logical database model to store data related to the customer, donuts, and donut order.

Next, you will create four tables with primary and foreign keys that are derived from your E-R model. Once the tables have been built, then you will create views and indexes to protect and fine-tune query performance. You will populate each of the tables with sample data.

Finally, you will create both a simple "select-from-where" (sfw) query and a complex join query to produce meaningful reports on individual donut orders and summaries to determine which donuts sell the best.

Requirements:

A. Construct a normalized model to represent the donut shop smartphone application database that supports the scenario above by doing the following:

1. Using the attached "Sales Order Form" (unnormalized order form) for the donut ordering database as a reference, produce the final logical schema for this database by doing the following:

Note: You can design the tables for the following prompts using any method of your choice (e.g., using a drawing tool using tables).

a. Design one table that is in first normal form and fulfills the following requirements:

• The table should have a primary key that uniquely identifies the records.

• The values in each of the columns should be atomic.

• There should be no repeating groups.

i. Explain how you designed the table (suggested length of 1 paragraph).

b. Design three tables that are in second normal form and fulfill the following requirements:

• The tables should meet all of the requirements for the first normal form.

• All functional dependencies should be removed from the tables.

• Each of the tables should have all primary and/or foreign keys designated.

i. Explain how you designed the tables (suggested length of 1 paragraph).

c. Design four normalized tables that are in third normal form and fulfill the following requirements:

• The tables should meet all of the requirements for the first and second normal forms.

• All transitive dependencies should be removed from the tables.

• Each of the tables should have all primary and/or foreign keys designated.

• Do not include the calculated attributes/fields (Line Total, Subtotal, Sales Tax and Total) in your normalization diagrams.

• There should be four resulting tables: one for customer information, one for donut information, one for order information and one for order line item information.

i. Explain how you designed the tables (suggested length of 1 paragraph).

B. Create an entity-relationship (E-R) diagram, using the tables you designed in third normal form from part A1c, that fulfills the following requirements:

Note: You can use any drawing tool of your choice to create the diagram.

1. Draw entities to represent each of the tables from the third normalized form.

2. Enter all appropriate fields (i.e., attributes) into each of the entities.

a. Designate primary keys (PK) and foreign keys (FK).

b. Designate data types for each attribute (i.e., Numeric, Fixed, Char, Varchar, or Timestamp).

3. Label relationships drawn between the entities with a relationship name.

Note: The cardinality of each relationship needs to be identifiable.

4. Provide a written explanation for the following:

a. Explain why you selected the entities represented in your diagram.

b. Explain how you determined the relationships between these entities.

c. Explain the types of relationships (i.e., cardinality) used in your diagram.

C. Develop the SQL code to create each of the third normal form tables you designed in part A and refined in part B by doing the following:

1. Provide the SQL code you wrote for each table.

a. Demonstrate that you have tested your code from part C1 by providing a screenshot of your results.

D. Develop SQL code to create a "View" that shows all of the customer information with the first name and last name concatenated (CONCAT()) to show full name as one field using the table that contains the customer information fields by doing the following:

1. Provide the SQL code you wrote to create the "View" for customer information.

a. Demonstrate that you have tested your code from part D1 by providing a screenshot of your results.

E. Develop SQL code to create an "Index" for the donut name field using the table that contains the donut information fields by doing the following:

1. Provide the SQL code you wrote to create the "Index" for the donut information.

a. Demonstrate that you have tested your code from part E1 by providing a screenshot of your results.

F. Develop SQL code to populate all of the tables developed in part C by doing the following:

1. Provide the SQL code that inserts data into all of the tables.

Note: Make sure that data is inserted first into the table(s) with primary keys before inserting data into the other tables.

a. Demonstrate that you have tested your code from part F1 by providing a screenshot of your results.

G. Develop SQL code to display the values in a requested table or tables using the tables populated in part F by doing the following:

1. Provide the SQL code for the simple (sfw) queries to display all of the data in each of the tables you have created and populated.

a. Demonstrate that you have tested your code from part G1 by providing a screenshot of your results.

2. Provide the SQL code for a complex join query to display all of the information contained in the attached "Sales Order Form" with the exception of the calculated attributes (Line Total, Subtotal, Sales Tax and Total).

a. Demonstrate that you have tested your code from part G2 by providing a screenshot of your results.

H. Submit parts A-G as a *.pdf (Portable Document Format) to TaskStream.

Note: You can use any word-processing or other program of your choice to compile each part of the assessment. Please clearly label each part. Please save your document as a *.pdf (Portable Document Format) file before submitting to TaskStream.

Note: For definitions of terms commonly used in the rubric, see the Rubric Terms web link included in the Evaluation Procedures section.

Attachment:- Sales_Order.rar

Reference no: EM131649707

Questions Cloud

Examples of monoecious and dioecious plants : What are some examples of monoecious and dioecious plants (are they even this 'clearly defined' as monoecious and dioecious)?
The diagnoses for the patient experiencing neurogenic shock : Identify three nursing diagnoses for the patient with spinal cord injury focusing on the first 24 hours in the ICU
Individual perspective and a population perspective : Explain how you can look at this scenario from both an individual perspective and a population perspective.
Hierarchy of needs affect a person''s readiness to learn : How would Maslow's hierarchy of needs affect a person's readiness to learn, Include an example from your selected area of education
The tables from the third normalized form : Draw entities to represent each of the tables from the third normalized form. Enter all appropriate fields into each of the entities.
Provide historical background of the company : In the Introduction, please provide historical background of the company and its financial and international dealings.
Primary functions of the respiratory system : What are the primary functions of the respiratory system? Explain the roles of mucus and cilia in the respiratory system.
Mitochondria of the renal tubular cell : Explain how ketone bodies depress renal ammoniogenesis by preventing the transformation of glutamine and glutamate into a-ketoglutarate
Discuss psychiatric of mental health nursing : psychiatric of mental health nursing i would like to know if there is any test bank available for me to study

Reviews

Write a Review

Database Management System Questions & Answers

  Create a class diagram of the intial code

The base application consists of three classes - Doctor, Patient and Hospital. A patient can be a private or public patient and is handled differently in either case. Patients are assigned to Doctors according to availability and preference.

  Database modeling and normalization

Database Modeling and Normalization

  What are some potential problems of poor database design

Discuss some of the ways in which data mining can help a company generate more business. What are some potential problems of poor database design

  Describe the objectives of the database environment

Analyze the database environment - describe the problems and constraints and describe the objectives of the database environment.

  Write a program that uses the xml file from par display name

Write a program that uses the XML file from par (a) to display the names, states, and party affiliation of all the senators in the DataGridView in order by state. The two senators from each state should be in order by their first names.

  Show what makes database connectivity so complex

Show what makes database connectivity so complex and what could be done to simplify it - Add in your discussion why it is utilized despite its complexity.

  Write a join query that for every order

Write a join query that for every order placed on September 5, 1998, (use '05-SEP-1998') will list the order number and order date along with the customer number, last name, and first name of the customer who placed the order.

  Explain the disaster plan you would set up for the bank

Explain the disaster plan you would set up for the bank. Make sure you justify the disaster plan chosen and include key metrics such as allowed down time.

  Describe the content user access methods and sources of data

Find an example of an actual data warehouse. For this example, describe the content, purpose, user access methods, and sources of data.

  Create a relational database design for the data model

Create a Relational Database Design for the data model you developed for where you've added Projects and Supplies - Remember that in a database design you cannot have N:M relationships.

  How to connect to the oracle database

Instructions: You can use any source you prefer, the text, Internet, etc. The answers should not take more than 1 - 2 paragraphs of text, please submit a word processing document, please make sure it's compatible with MS Word.

  Create and submit a screenshot of your database diagram

Create and submit a screenshot of your database diagram based on the tables, and generate the data definition language (DDL) for each table.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd