Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have been hired by a small retail outlet store in your community to help them build a small database that will help them track

You have been hired by a small retail outlet store in your community to help them build a small database that will help them track customers, products and orders placed.  This database will have three tables, and your task noted below is to write the code needed to generate the tables as designed. 

Given the requirements for a database in the chart below, construct the SQL code needed to create each table.  You can use this site to create and validate your code:

  • Ensure you correctly identify the primary key fields in your code that are required to create the tables.
  • Provide clear comments in the code.
  • Discuss the fields you will use to join these tables together to make the database relational. 

When you have completed this assignment, copy and paste your code into a Word document along with your response to the question and submit it for review. This assignment will be assessed by your instructor using the Building a Database Rubric.
 

Table Name                Field                      Data Type            Required?
CustomersCustomerIDIntegerY
 FirstNameVariable CharacterY
 LastNameVariable CharacterY
  Address1 Variable Character Y
 Address2Variable CharacterN
 CustCityVariable CharacterY
 CustStateCharacterY
 CustZipCodeCharacterY
 EmailVariable CharacterN
 AccountCreatedDateTimeY
OrdersOrderIDIntegerY
 OrderDateDateTimeY
 OrderItemNameVariable CharacterY
 OrderQuantityIntegerY
 ProductIDIntegerY
ProductsProductIDIntegerY
 ProductNameVariable CharacterY
 ProductDescVariable CharacterY
 ProdManfacNameVariable CharacterY

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Here is the SQL code to create the three tables Customers Orders and Products based on the provided ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intermediate Accounting

Authors: Kin Lo, George Fisher

3rd Edition Vol. 1

133865940, 133865943, 978-7300071374

More Books

Students also viewed these Databases questions