Clarissa M.

asked • 06/24/21

NEED HELP ASAP!

  1. Create tables using SLQ statements with all the constraints. Choose appropriate SQL Server data types. Insert 2 rows in each of the tables. Assume relevant value in the rows of each table. Be sure the order of the table creation and insertion must be correct, to cover referential integrity constraints.

Product (Product ID, ProdName, ProdDescription, Price)

Order (Product ID, Customer ID, Order Date)

Customer (Customer ID, CustName, PostalCode)


*Other Constraints*

  1. Customer must have postal code and name
  2. no 2 products that have the exact same name
  3. An order must have a date

2.In what normal form (NF) is the table below and convert it to the 3rds normal form if it is in a lower form. Mention relationships between the tables. Include all the types of dependencies (Total, Partial, & Transitive)


|¯¯¯¯¯¯¯¯¯¯|¯¯¯¯¯¯¯¯¯|¯¯¯¯¯¯¯¯¯¯¯•¯¯¯¯¯¯¯¯¯¯¯¯↓

Statement (Customer ID, Order ID, issue date, Customer_Name, statement_type)

|_______________________________↑


1 Expert Answer

By:

Patrick B. answered • 06/24/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.