1. Homepage
  2. Homework
  3. BUS 440 Database Management - Project 1: Tucker Electronics
This question has been solved

BUS 440 Database Management - Project 1: Tucker Electronics

Engage in a Conversation
NCSUBUS 440Database ManagementSQL

BUS 440 Project 1 CourseNana.COM

  CourseNana.COM

Use Case: CourseNana.COM

Tucker Electronics, LLC. needs to keep track of their office, electronic, and computer inventory to reduce costs, manage reorder points, and better track item locations within their facilities. They need to track which buildings contain what products and be able to contact the manager of each building to verify inventory and reorder products, when necessary. The New Technology Building (NTB) is a building managed by Langley T. Johnson, while the Michael Simms Building (MSB) is managed by Mariel J. Carter. Each manager has access to the main building phone number of the building he or she manages. Assistants keep track of office computers, servers, printers, scanners, printer toner, and wearables etc. using a simple spreadsheet. It looks something the data shown below, with a sample of a few of the items tracked. This includes all inventory stored in buildings, as well as purchase order information. CourseNana.COM

Instructions: CourseNana.COM

In this project, your goal is to replace the spreadsheet solution currently used by the administrative assistant with a relational database. Design a relational database solution. Be sure to note the attributes listed in the current spreadsheet as well as those discussed in the use case. CourseNana.COM

Item Number CourseNana.COM

Item Name CourseNana.COM

Building CourseNana.COM

Room Number(s) CourseNana.COM

Vendor ID CourseNana.COM

Vendor Name CourseNana.COM

Total Item Quantity on Hand CourseNana.COM

Item Quantity on Order CourseNana.COM

Purchase Order No. CourseNana.COM

Item Cost CourseNana.COM

Vendor AP Terms (Months) CourseNana.COM

Purchase Order Date CourseNana.COM

Arrival Date CourseNana.COM

231134 CourseNana.COM

HP DeskJet 895Cse CourseNana.COM

New Technology Building CourseNana.COM

325, 100 CourseNana.COM

555 CourseNana.COM

Sam’s Supply Store CourseNana.COM

20 (10 in each room) CourseNana.COM

4 CourseNana.COM

10001 CourseNana.COM

119.55 CourseNana.COM

30 CourseNana.COM

08/05/21 CourseNana.COM

02/25/22 CourseNana.COM

342245 CourseNana.COM

HP Toner CourseNana.COM

New Technology Building CourseNana.COM

325 CourseNana.COM

555 CourseNana.COM

Sam’s Supply Store CourseNana.COM

12 CourseNana.COM

2 CourseNana.COM

10001 CourseNana.COM

35.00 CourseNana.COM

30 CourseNana.COM

08/05/21 CourseNana.COM

02/25/22 CourseNana.COM

254668 CourseNana.COM

DT Scanner CourseNana.COM

Michael Simms Building CourseNana.COM

123 CourseNana.COM

456 CourseNana.COM

John’s Warehouse Deals CourseNana.COM

18 CourseNana.COM

5 CourseNana.COM

10003 CourseNana.COM

199.99 CourseNana.COM

30 CourseNana.COM

08/05/21 CourseNana.COM

02/25/22 CourseNana.COM

254678 CourseNana.COM

DT Hard Drive CourseNana.COM

Michael Simms Building CourseNana.COM

100 CourseNana.COM

987 CourseNana.COM

Electronic Depot CourseNana.COM

4 CourseNana.COM

2 CourseNana.COM

10004 CourseNana.COM

400.88 CourseNana.COM

30 CourseNana.COM

08/05/21 CourseNana.COM

02/25/22 CourseNana.COM

254278 CourseNana.COM

DT 400 Cable CourseNana.COM

New Technology Building CourseNana.COM

100 CourseNana.COM

987 CourseNana.COM

Electronic Depot CourseNana.COM

2 CourseNana.COM

1 CourseNana.COM

10005 CourseNana.COM

19.66 CourseNana.COM

30 CourseNana.COM

08/05/21 CourseNana.COM

02/25/22 CourseNana.COM

112200 CourseNana.COM

Watch Wearable CourseNana.COM

New Technology Building CourseNana.COM

333 CourseNana.COM

444 CourseNana.COM

Hulkey Wearables CourseNana.COM

100 CourseNana.COM

195 CourseNana.COM

11001 CourseNana.COM

4.25 CourseNana.COM

30 CourseNana.COM

08/05/21 CourseNana.COM

01/13/22 CourseNana.COM

114300 CourseNana.COM

Watch Wearable CourseNana.COM

New Technology Building CourseNana.COM

333 CourseNana.COM

445 CourseNana.COM

Aboss Devices CourseNana.COM

109 CourseNana.COM

100 CourseNana.COM

11002 CourseNana.COM

4.25 CourseNana.COM

30 CourseNana.COM

08/05/21 CourseNana.COM

01/13/22 CourseNana.COM

231134 CourseNana.COM

HP DeskJet 895Cse CourseNana.COM

New Technology Building CourseNana.COM

105 CourseNana.COM

555 CourseNana.COM

Sam’s Supply Store CourseNana.COM

5 CourseNana.COM

2 CourseNana.COM

11005 CourseNana.COM

125.00 CourseNana.COM

30 CourseNana.COM

01/15/22 CourseNana.COM

02/19/22 CourseNana.COM

  CourseNana.COM

Part 1: Design the Database CourseNana.COM

Step 1: Read the use case and carefully view the data.  Write down the business rules from the data (e.g., An item may be stored in multiple rooms of a building).  Write down the business rules from the use case narrative (e.g., Each building is managed by a manager). CourseNana.COM

Step 2: Define the entities, attributes, and relationships and model them. To do so, write the relational schema. Look at the sample records and any data found inside the use case description. Find the possible themes, and then setup the relational schema (or dependency diagram or functional dependency) to represent all of the attributes listed.  If possible, identify a candidate primary key that uniquely defines each row. CourseNana.COM

Step 3: Normalize to third normal form (3NF).  Show all work for each step (1NF, 2NF, and 3NF). CourseNana.COM

Step 4: Improve the Design Improving the design involves standardization of names, adding new attributes, adding new relationships and tables, etc. Update any relational schemas or dependency diagrams. CourseNana.COM

Step 5: Build the ERD in Visio or LucidChart (or hand-draw it). CourseNana.COM

(Consider getting your design approved before proceeding.) CourseNana.COM

  CourseNana.COM

Part 2: Type data into spreadsheets CourseNana.COM

In this part, populate the data into temporary spreadsheets, which we will later use to import into the tables. CourseNana.COM

1. Open Excel and create a file for each entity represented in your ERD. Note that you will have several spreadsheets of data. Name each file appropriately (e.g., ITEM). CourseNana.COM

2. Label the first row of each sheet with the attribute names from your ERD. CourseNana.COM

3. In rows 2 and following, type data into each spreadsheet representing the topic (theme) of that sheet, according to your ERD. CourseNana.COM

4. Save each Excel spreadsheet as a .csv file. CourseNana.COM

  CourseNana.COM


CourseNana.COM

  CourseNana.COM

Part 3: Build the Database in MySQL from the Design and Import the Data CourseNana.COM

In this part, import the records into the tables and build the PKs and FKs in My SQL. CourseNana.COM

1.     From the Navigator Panel (left side), right-click the World schema and choose Create New Schema. CourseNana.COM

2.     Name the schema TuckerElectronics and click Apply. Continue to click Apply and Finish. CourseNana.COM

3.      From the Navigator panel, right-click and choose Refresh All to see the new database. CourseNana.COM

4.     Expand the TuckerElectronics schema. CourseNana.COM

5.     Import each table in the schema. To do so, complete these steps for each table: CourseNana.COM

a.     Right-click the TuckerElectronics database and choose Table Data Import Wizard. CourseNana.COM

b.     Navigate to the location where you stored the spreadsheets with the data. CourseNana.COM

c.     Open the sheets and import the data. Create a new table, item, by finding the item csv file and opening it. Click Next through the following steps to import the rows. Click Finish. CourseNana.COM

d.     Right-click on Tables and choose Refresh All, and then expand the Tables object to see the table. Hover over the table to see the three icons on the right. Click the third icon to run a SQL query listing the rows in the table. CourseNana.COM

e.     Import the data from each additional spreadsheet using similar steps. Right-click on Tables and choose Refresh All, and then expand the Tables object to see the table. Hover over the table to see the three icons on the right. Click the third icon to run a SQL query listing the rows in the table. CourseNana.COM

f.      Tell MySQL Workbench which schema to use. To do so, enter: USE TuckerElectronics; CourseNana.COM

g.     Create the primary key for each table (corresponding to the respective entity represented in your ERD). (See the examples below.) Each table should have only one (sole or composite) non-null primary key, indexed with no duplicates. If the PK does NOT have text-based data (e.g., it is all numbers), use this example. Here, we are changing (altering) the metadata associated with the already-existing vendor table. This table was built automatically during the process of importing the data from the spreadsheet. CourseNana.COM

ALTER TABLE vendor ADD PRIMARY KEY(Vendor_ID); CourseNana.COM

  CourseNana.COM

If a PK contains text data, you must define the length of the primary key, as shown below in the text data of the building code (e.g., NTC) for the building table. CourseNana.COM

ALTER TABLE building ADD PRIMARY KEY(Building_Code(3)); CourseNana.COM

  CourseNana.COM

If the PK is composite, refer to the example below for the room table. Notice the ADD CONSTRAINT statement, where we give the constraint a name (pkc_room) along with identifying the two fields that comprise the primary key. CourseNana.COM

ALTER TABLE building_room ADD CONSTRAINT pkc_room PRIMARY KEY (BuildingCode(3), Room_Number); CourseNana.COM

  CourseNana.COM

If you have a table with a PK that has a data type of TEXT, you must modify (alter) the table again to change the data type from TEXT to VARCHAR and identify the appropriate length for that field. Below is an example. The VARCHAR (variable data type with a fixed length of three (instead of the variable length TEXT data type)) will assist as you build the FK in the next steps. CourseNana.COM

ALTER TABLE building MODIFY Building_Code VARCHAR(3); CourseNana.COM

  CourseNana.COM

Create the foreign keys to establish the one-to-many (1:M) relationships between the tables in your ERD. See the examples below. Notice the use of a constraint to make the FK. CourseNana.COM

ALTER TABLE item ADD CONSTRAINT FK_Vendor_code FOREIGN KEY (Vendor_Code) REFERENCES vendor(Vendor_Code); CourseNana.COM

  CourseNana.COM

If you need to build a foreign keys to connect to a table with a composite PK,  see the example below. CourseNana.COM

ALTER TABLE inventory CourseNana.COM

ADD CONSTRAINT FK_Inventory_RoomNumber FOREIGN KEY (BuildingCode, RoomNumber) REFERENCES building_room(BuildingCode, RoomNumber); CourseNana.COM

  CourseNana.COM

  CourseNana.COM

Part 4: Write SQL queries: CourseNana.COM

In this part, write a SQL program to extract the data to answer each of these questions. Include a screen shot of your SQL code and results for each question in this Word (not pdf) document. Also include the .sql file with the script for all queries. CourseNana.COM

1.     Which items are currently on order and from what vendor? Include the vendor name and location. CourseNana.COM

2.     What is the list of inventory (items), along with the location (building and room) and the quantity on hand of each. CourseNana.COM

3.     What is the aggregated total inventory of each item in each room of each building? Include each item number and name, along with its total. CourseNana.COM

4.     What is the manager’s name and phone number of each building and the products stored in that building? CourseNana.COM

5.     What is the aggregated total inventory of all items in all buildings by vendor name? CourseNana.COM

6.     What items have purchase orders from what vendors with what amounts? CourseNana.COM

7.     Write at least one more query of your choosing. It must include an average aggregate calculation of some type. CourseNana.COM

8.     Write at least one more query of your choosing. It must include a subquery. CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

  CourseNana.COM

Part 5: Submit your work in a zipped file to Moodle by the due date. The zipped file should include: CourseNana.COM

1.     This document with all design steps and build steps (including SQL screenshots) completed. CourseNana.COM

2.     ERD file via handwritten image, Visio, or LucidChart; CourseNana.COM

3.     .sql file with all queries in a script via MySQL Workbench. CourseNana.COM

Get in Touch with Our Experts

WeChat (微信) WeChat (微信)
Whatsapp WhatsApp
NCSU代写,BUS 440代写,Database Management代写,SQL代写,NCSU代编,BUS 440代编,Database Management代编,SQL代编,NCSU代考,BUS 440代考,Database Management代考,SQL代考,NCSUhelp,BUS 440help,Database Managementhelp,SQLhelp,NCSU作业代写,BUS 440作业代写,Database Management作业代写,SQL作业代写,NCSU编程代写,BUS 440编程代写,Database Management编程代写,SQL编程代写,NCSUprogramming help,BUS 440programming help,Database Managementprogramming help,SQLprogramming help,NCSUassignment help,BUS 440assignment help,Database Managementassignment help,SQLassignment help,NCSUsolution,BUS 440solution,Database Managementsolution,SQLsolution,