Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For a data model to be valid, the data structure must reflect that model. You would run a series of scripts to confirm the entities



For a data model to be valid, the data structure must reflect that model. You would run a series of scripts to confirm the entities seen in the data have the same maximum cardinalities as specified in your diagram. 


 
  1. For each parent entityin your conceptual data model usethe following script to confirm the cardinality between entities.
 


 

SELECT parent_identifying_attribute,

 

COUNT(DISTINCT child_identifying_attribute) ChildCount

 

FROM import_table

 

GROUP BY parent_identifying_attribute

 

HAVING COUNT(DISTINCT child_identifying_attribute) > 1;

 


 

Rows returned means PARENT - 1:N - CHILDREN

 

No rows returned means PARENT - 1:1 - CHILD

 


 

NOTE: If the parent or child identifying attribute is FirstName & LastName, use EmployeeName or CustomerName accordingly. To confirm the PURCHASE entity only use PurchaseDate as your identifying attribute. For SKILL use only SkillName.

 


Step by Step Solution

There are 3 Steps involved in it

Step: 1

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_2

Step: 3

blur-text-image_3

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

An Introduction To Statistical Methods And Data Analysis

Authors: R. Lyman Ott, Micheal T. Longnecker

7th Edition

1305269470, 978-1305465527, 1305465520, 978-1305269477

More Books

Students also viewed these Databases questions

Question

What is overfitting? Why is it so important to watch out for?

Answered: 1 week ago