Database management, computer science homework help

Question description

To complete this assessment, you will be using SQL Fiddle, an online SQL tool, http://sqlfiddle.com/   to test run the MySQL code that you will develop for parts C through G. After running the code, you will take a screenshot of your results, which should be copied into the document that you will submit to TaskStream for this assessment. Instructions for how to use this tool for each part of the assessment is 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.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 SQL Fiddle) should be saved as a single *.pdf (Portable Document Format) file that you will submit to TaskStream.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 three 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 unnormalized order form (“Sales Order Form” attached below) 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 using any method of your choice (e.g., using a drawing tool using tables).a. Design a table that is in 1st 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.  Write a one paragraph explanation of how you designed the table.b. Design at least two tables that are in 2nd normal form and fulfill the following requirements:•  The tables should meet all of the requirements for the 1st normal form.•  Redundant data appearing in multiple rows should be eliminated with the creation of the new tables.•  Each of the tables should be related using foreign keys.i.  Write a one paragraph explanation of how you designed the tablec. Design at least three normalized tables that are in 3rd normal form and fulfill the following requirements:•  The tables should meet all of the requirements for the 1st and 2nd normal forms.•  Fields that do not depend on the primary key or any other field should be eliminated.•  There should be at least three resulting tables, one for customer information, one for donut information, and one for order information.i.  Write a one paragraph explanation of how you designed the tableB. Using the tables you designed in 3rd normal form from part A1c, create an entity-relationship (E-R) diagram that fulfills the following requirements:Note: You can use any drawing tool of your choice to create the diagram.•  Entities should be drawn that represent each of the tables from the 3rd normalized form.•  All appropriate fields (i.e., attributes) should be entered into each of the entities.•  Primary keys (PK) and foreign keys (FK) should be appropriately designated.•  Data types for each attribute (Numeric, Fixed, Char, Varchar, or Timestamp) should be appropriately designated.•  Relationships drawn between the entities should be labeled with a relationship name.1. 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 what the cardinality is for each of the relationships.C. Develop the SQL code for each of the 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.Note: Make sure all of the primary and foreign keys and data types are assigned to each of the fields in the create table SQL code.a. Demonstrate that you have used SQL Fiddle to test your code from part C1 by providing a screenshot of your results.D. Using the table that contains the customer information fields, 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 by doing the following:1. Provide the SQL code you wrote to create the View for the customer information.a. Demonstrate that you have used SQL Fiddle to test your code from part D1 by providing a screenshot of your results.E. Using the table that contains the donut information fields, develop SQL code to create an Index for the donut name field by doing the following:1. Provide the SQL code you wrote to create the Index for the donut information.a. Demonstrate that you have used SQL Fiddle to test your code from part E1 by providing a screenshot of your results.F. Using all of the tables you developed in part C, develop SQL code to populate each of the tables 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 used SQL Fiddle to test your code from part F1 by providing a screenshot of your results.G. Using the tables you populated in part F, develop SQL code to display the values in a requested  table or tables 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 used SQL Fiddle to test 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.”a. Demonstrate that you have used SQL Fiddle to test your code from part G2 by providing a screenshot of your results.

Duepapers
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.