Create a Mircrosoft Word document named A05.docx. Include all diagrams, screen shots, code, and answers to questions
Fantastic news! We've Found the answer you've been seeking!
Question:
- Create a Mircrosoft Word document named A05.docx. Include all diagrams, screen shots, code, and answers to questions within the following sections:
- Understand Data Structure and Data
- Customer Name and Kinds of Customers
- Customer Name List
- Count Customer Types
- Discussion
- a) In the Understand Data Structure and Data section of A05.docx
- Create an Entity Relationship Diagram (ERD)
- Includes all tables related to the Customer table.
- Arrange and space those tables and relationships so that you can easily see the database structure.
- Copy and paste the ERD into A05.docx
- Understand the Tables
- Write and run a query to select all rows and fields from each of the tables in your ERD. Familiarize yourself with the data.
- For each table answer the following in A05.docx
- How many rows?
- Describe the table
- For each relationship answer the following in A05.docx
- Describe the relationship
- Does the relationship always exist? If not, when not?
- Create an Entity Relationship Diagram (ERD)
- In the Customer Name and Kinds of Customers section of A05.docx
- Explain why there is no customer name in the Customer table and where is the customer name?
- The structure and the data tells you that there is more than one type of customer, which are:
- Person
- Store
- Store with Contact
- How did I arrive at that conclusion? What fields have what values for each of the three customer types?
- Person -
- Store -
- Store with Contact -
- In the Customer Name List section of A05.docx.
- Write and run a query to show all customers with their names in a single list ordered ascending by AccountNumber.
- Include the following fields.
- Customer AccountNumber
- Customer Type - results from a CASE statement that will produce a value for each type of customer. There are three types of customers: Person, Store, and Store with Contact
- Customer Name - results from a Case statement that will produce a value depending on each of the three types of customers.
- Use a CONCAT statement to combine and format first, middle, and last names that includes commas, periods, and spaces for which the results appear like: Woolridge, Richard W.
- Make your CONCAT statement account for all the variations (e.g., blank, middle initial, middle name, and null) in the MiddleName field
- Submit a screen shot in A05.docx.
- Submit a copy of the code in A05.docx.
- Create Store with Contact Customer Report
- Limit your query to only include Store with Contact customer type
- Submit a copy of the code in A05.docx.
- Use Visual Studio to create a report using the Store with Contact query
- Use Visual Studio to format these reports to include the following.
- Header
- Student name
- Report title
- Date report run
- Make sure column headers print on every page
- Footer
- Brief one short line description of what is on the report
- Page x of y
- Header
- Print the report a single page wide to A05.PDF
- Limit your query to only include Store with Contact customer type
- In the Count Customer Types section of A05.docx.
- Write and run a query to Count total customers.
- Name the count “Total Customers”
- There should only be a single column and a single row resulting from this query
- Submit a screen shot in A05.docx.
- Submit a copy of the code in A05.docx.
- Write and run a query to Count Customers by Customer Type order by ascending Total Customers and include Customer Type and Customer Count as fields in your query.
- Submit a screen shot in A05.docx.
- Submit a copy of the code in A05.docx.
- Write and run a query to Count total customers.
- In the Discussion section of A05.docx.
- What do you now know about AdventureWorks customers?
- Look at the counts. What are the data points that is most important to communicate to management?
- Given the datapoints what customers should AdventureWorks focus on?
- After completing this assignment use the ERD, Data Dictionary, and your new understanding to complete the Assignment Quiz related to this Assignment. Be prepared to answer the following questions in that quiz.
- How many tables are in your ERD?
- How many relationships are in your Customer ERD?
- How many foreign keys are in the Customer table?
- How many rows are in the Customer table?
- The name of the Customer can be found in which field?
- The Customer name located in the Store table is how many fields?
- The Customer name located in the Person table is how many fields?
- Why is customer not always related to person?
- The Customer Type field in this assignment got its values from a __________ statement.
- When the Customer Name field in this assignment got its values from the Person table, which field was used?
- Which statement permits more than one text field to be strung together into a single field?
- How many customers are persons?
- How many customers are stores?
- How many PersonIDs in the Customer table are null?
- How many customers have both person and store relationships?
- What percentage of AdventureWorks customers are Stores?
- What percentage of AdventureWorks customers are Persons?
- How can a customer be related to Person and to Store?
- When you go back and explore the ERD in detail, what field explains how some persons are individual customers and some persons are simply store contacts?
- Create a Mircrosoft Word document named A05.docx. Include all diagrams, screen shots, code, and answers to questions within the following sections:
Related Book For
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last
Posted Date: