Uncategorized

Business Management

Y​‌‍‍‍‌‍‍‌‌‍‌‍‍‌‌‌‍‍‍‍​ou will be creating an entity-relationship (ER) model, databases, tables, and queries for two fictional small businesses. You will use SQL to test and run a database application that you will develop. The design models and 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 file. A. Construct a normalized physical database model to represent the ordering process for Nora’s Bagel Bin by doing the following: Note: Before proceeding, familiarize yourself with the ordering process for Nora’s Bagel Bin by reviewing the following documents in the Supporting Documents section of this task: the shop’s unnormalized sales order form (“Bagel Order Form”) and the first normal form (1NF) provided in the “Nora’s Bagel Bin Database Blueprints.” 1. Complete the second normal form (2NF) section of the attached “Nora’s Bagel Bin Database Blueprints” document by doing the following: a. Assign each attribute from the 1NF table into the correct 2NF table. b. Describe the relationship between the two pairs of 2NF tables by indicating their cardinality in each of the dotted cells: one-to-one (1:1), one-to-many (1:M), many-to-one (M:1), or many-to-many (M:M). Note: Cardinality is read left to right and top to bottom, and the preferred method of notation is crow’s foot. c. Explain how you assigned attributes to the 2NF tables and determined the cardinality of the relationships between your 2NF tables. 2. Complete the third normal form (3NF) section of the attached “Nora’s Bagel Bin Database Blueprints” document by doing the following: a. Assign each attribute from your 2NF "Bagel Order" table into one of the new 3NF tables. Copy all other information from your 2NF diagram into the 3NF diagram. b. Provide each 3NF table with a name that reflects its contents. c. Create a new field that will be used as a key linking the two 3NF tables you named in part A2b. Ensure that your primary key (PK) and foreign key (FK) fields are in the correct locations in the 3NF diagram. d. Describe the relationships between the 3NF tables by indicating their cardinality in each of the dotted cells: one-to-one (1:1), one-to-many (1:M), many-to-one (M:1), or many-to-many (M:M). Note: Cardinality is read left to right and top to bottom, and the preferred method of notation is crow’s foot. e. Explain how you assigned attributes to the 3NF tables and determined the cardinality of the relationships between your 3NF tables. 3. Complete the "Final Physical Database Model" section of the attached “Nora’s Bagel Bin Database Blueprints” document by ​‌‍‍‍‌‍‍‌‌‍‌‍‍‌‌‌‍‍‍‍​doing the following: a. Copy the table names and cardinality information from your 3NF diagram into the “Final Physical Database Model” and rename the attributes. b. Assign one of the following five data types to each attribute in your 3NF tables: CHAR(), VARCHAR(), TIMESTAMP, INTEGER, or NUMERIC(). Each data type must be used at least once. B. Create a database using the attached "Jaunty Coffee Co. ERD" by doing the following: 1. Develop SQL code to create each table as specified in the attached “Jaunty Coffee Co. ERD” by doing the following: a. Provide the SQL code you wrote to create all the tables. b. Demonstrate that you tested your code by providing a screenshot showing your SQL commands and the database server’s response. 2. Develop SQL code to populate each table in the database design document by doing the following: Note: This data is not provided. You will be fabricating the data for this step. a. Provide the SQL code you wrote to populate the tables with at least three rows of data in each table. b. Demonstrate that you tested your code by providing a screenshot showing your SQL commands and the database server’s response. 3. Develop SQL code to create a view by doing the following: a. Provide the SQL code you wrote to create your view. The view should show all of the information from the “Employee” table but concatenate each employee’s first and last name, formatted with a space between the first and last name, into a new attribute called employee_full_name. b. Demonstrate that you tested your code by providing a screenshot showing your SQL commands and the database server’s response. 4. Develop SQL code to create an index on the coffee_name field by doing the following: a. Provide the SQL code you wrote to create your index on the coffee_name field from the “Coffee” table. b. Demonstrate that you tested your code by providing a screenshot showing your SQL commands and the database server’s response. 5. Develop SQL code to create an SFW (SELECT–FROM–WHERE) query for any of your tables or views by doing the following: a. Provide the SQL code you wrote to create your SFW query. b. Demonstrate that you tested your code by providing a screenshot showing your SQL commands and the database server’s response. 6. Develop SQL code to create a query by doing the following: a. Provide the SQL code you wrote to create your table joins query. The query should join together three different tables and include attributes from all three tables in its output. b. Demonstrate that you tested your code by providing a screenshot showing your SQL commands and the database server’s response.​‌‍‍‍‌‍‍‌‌‍‌‍‍‌‌‌‍‍‍‍​C. Submit parts A and B as a PDF, with each part clearly labeled.

Essay Mill

Share
Published by
Essay Mill

Recent Posts

Childbirth

For this short paper activity, you will learn about the three delays model, which explains…

1 month ago

Literature

 This is a short essay that compares a common theme or motif in two works…

1 month ago

Hospital Adult Medical Surgical Collaboration Area

Topic : Hospital adult medical surgical collaboration area a. Current Menu Analysis (5 points/5%) Analyze…

1 month ago

Predictive and Qualitative Analysis Report

As a sales manager, you will use statistical methods to support actionable business decisions for Pastas R Us,…

1 month ago

Business Intelligence

Read the business intelligence articles: Getting to Know the World of Business Intelligence Business intelligence…

1 month ago

Alcohol Abuse

The behaviors of a population can put it at risk for specific health conditions. Studies…

1 month ago