Sahitya Batchu_BAN5501_HW3

.docx

School

Concordia University Portland *

*We aren’t endorsed by this school

Course

475

Subject

Information Systems

Date

Apr 30, 2024

Type

docx

Pages

5

Uploaded by abisahi157 on coursehero.com

1 Homework Assignment-3 Ambika Sahitya Batchu Data Management & SQL for Analytics BAN 5501 Homework Assignment 3
2 Homework Assignment-3 1) TABLE PRIMARY KEY FOREIGN KEY(S) EMPLOYEE EMP_ CODE STORE_CODE STORE STORE-CODE REGION_CODE_,EMP_CODE REGION REGION-CODE None 2) TABLE ENTITY INTEGRITY EXPLANATION Employee Yes Each EMP_CODE value is unique and there are no nulls. Store Yes Each STORE value is unique and there are no nulls Region Yes Each REGION value is unique and there are no nulls 3) TABLE REFERENTIAL INTEGRITY EXPLANATION Employee Yes Each STORE-CODE value in employee points an exiting STORE-CODE value in store. Store Yes Each REGION_CODE value in STORE points to an existing REGION_CODE value in REGION and each EMP_CODE value in STORE points to an existing EMP_CODE value in EMPLOYEE Region NA 4) The REGION CODE values occur more than once in STORE suggests that each REGION may contain a number of stores. Since every STORE is limited to a single REGION, every STORE, and every REGION has a M:1 link. Naturally, it is also true that there is a 1:M relationship between REGION and STORE.
3 Homework Assignment-3 5) This figure illustrates the Crow's Foot ERD. Even if every store is located in a different area, there might be multiple stores in a single area. 6) The relationship diagram can be seen in this figure. The entities' locations are unimportant. Wherever the entity travels, so do the relationships. Therefore, it is inconsequential which side of the display the REGION is on—left or right. But we read from the "1" side to the "M" side consistently, no matter where the entity is located.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help