Preview

The Grace

Satisfactory Essays
Open Document
Open Document
2445 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
The Grace
http://www.oppapers.com/essays/Value-Chain-Analysis-Ba/689012

http://www.oppapers.com/essays/Value-Chain-Analysis-Ba/689012
Problem A

Use the database shown in Figure P3.1 to work Problems 1-7. Note that the database is composed of four tables that reflect these relationships:
• An EMPLOYEE has only one JOB_CODE, but a JOB_CODE can be held by many EMPLOYEEs.
• An EMPLOYEE can participate in many PLANs, and any PLAN can be assigned to many EMPLOYEEs.

Note also that the *:* relationship has been broken down into two 1:* relationships for which the BENEFIT table serves as the composite or bridge entity.
Database name: Ch03_BeneCo Table name: EMPLOYEE
EMP_CODE EMP_LNAME JOB_CODE
14 Rudell 2
15 McDade 1
16 Ruellardo 1
17 Smith 3
20 Smith 2

Table name: BENEFIT
EMP_CODE PLAN_CODE
15 2
15 3
16 1
17 1
17 3
17 4
20 3

Table name: JOB
JOB_CODE JOB_DESCRIPTION
1 Clerical
2 Technical
3 Managerial

Table name: PLAN
PLAN_CODE PLAN_DESCRIPTION
1 Term life
2 Stock purchase
3 Long-term disability
4 Dental

1. For each table in the database, identify the primary key and the foreign key(s). If a table does not have a foreign key, write None in the assigned space provided.

TABLE PRIMARY KEY FOREIGN KEY(S)
EMPLOYEE EMP_CODE JOB_CODE
BENEFIT EMP_CODE_PLAN_CODE EMP_CODE,PLAN_CODE
JOB JOB_CODE NONE
PLAN PLAN_CODE NONE

2. Create the ERD to show the relationship between EMPLOYEE and JOB.

3. Do the tables exhibit entity integrity? Answer yes or no.

TABLE ENTITY INTEGRITY
EMPLOYEE NO
BENEFIT YES
JOB YES
PLAN YES
4. Do the tables exhibit referential integrity? Answer yes or no. Write NA (Not Applicable) if the table does not have a foreign key.

TABLE REFERENTIAL INTEGRITY
EMPLOYEE YES

BENEFIT YES

JOB NO
PLAN YES

5. Create the ERD using Crow’s Foot notation to show the relationships among EMPLOYEE, BENEFIT, JOB, and PLAN.

Problem B

Use the database Ch03_StoreCo to answer Problems 7-13.
Database

You May Also Find These Documents Helpful

  • Satisfactory Essays

    The Kudler Foods need to design an entity relationship diagram to illustrate what needs to be on the table. A few of the tables could be combined to make reading the tables much easier. Kudler foods could combine inventory/order relationship, for example; order/sale relationship table, inventory/sale relationship table, and sale/receive payment relationship table. By combining any one of these tables Kudler Foods could process orders faster, find information faster by having the data in order and labeled and overall making the company’s system more efficient. One table Kudler Foods does not have that the management should consider which would benefit the business is an “employee table”. This way; Kudler could have personal information, sales numbers, last date he/she was reviewed, and just able to keep up…

    • 4521 Words
    • 87 Pages
    Satisfactory Essays
  • Good Essays

    An entity relationship diagram (ERD) is a graphical documentation technique used in the designing of database within organizations to describe the entities and their direct relationships (Bagranoff, Simkin, & Strand, 2008). The ERD diagram consists of entities, attributes, and relationship. The entity represents a rectangular; the diamond is symbolized by describing the relationship of the entities, oval shape describes the attributes, and the lines connect all three to describe their relationship. Attached is an ERD of Kudler Fine Foods showing their existing data tables.…

    • 496 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Service Request SR-ht-03

    • 569 Words
    • 2 Pages

    Next is the explanation of what are in the tables and the entity relationship between them. Table Tire Maintenance, this table has a relationship with Table Vehicle Maintenance. Their relationship is when the maintenance type ID is entered into the database it is automatically connected to the Table Maintenance work order section of the database. Table Maintenance work order has a relationship with Table Vehicle Types for type of vehicle. Part ID relates to Table parts Inventory Issues to link any kind of parts inventory subjects. Table Parts Inventory Issues has a relationship with Table Parts Inventory Purchases for any type of purchase information. Table Parts Catalogue has relationship with Table…

    • 569 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    PT2520 Unit7Labs Tramil

    • 330 Words
    • 1 Page

    13. What is referential integrity? Exists when every foreign key relates to an existing primary key. There are no orphan records in child tables that have no reference in a parent table.…

    • 330 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    It203 Homework 5

    • 319 Words
    • 2 Pages

    5. What restrictions does referential integrity place on the way data is entered into tables?…

    • 319 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    No Ans: CREATE TABLE dept (deptno NUMBER(2) NOT NULL, dname VARCHAR2(30) NOT NULL, loc VARCHAR2(20) CONSTRAINT deptno_pk PRIMARY KEY (deptno)); b. Table name: EMP i. Column datatype Mandatory? PK? FK?…

    • 1169 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    # Select a primary key for each table as indicated in the provided ERD diagram.…

    • 694 Words
    • 4 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The IT department will begin a plan to develop a software to track employee benefits and reports on vacation/personal time available. This project will now be referred to from now on and on future documentation as “Employee Benefits Software Design and Implementation.” This project will consist of multiple phases including a planning stage, a design stage, a testing phase, an implementation phase, and a clean-up phase. The Employee Benefits Software Design and Implementation project will allow employers and employees to track all benefits, as well as make changes when open enrollment is available for healthcare, 401k, dental, health savings bank accounts, and vision benefits. They will be able to track all benefits from how much vacation and sick pay is available, paycheck stubs, change withholdings for 401k and HSBA. The stakeholders in this project will include:…

    • 337 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pt2520 Final Answers 1/3

    • 329 Words
    • 2 Pages

    what best describes the function of a foreign key. the primary key repeated in another table to show relation…

    • 329 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    CAUA 8

    • 1452 Words
    • 5 Pages

    Q 1: Perform Verify and Count Commands for all three tables and identify any exceptions.…

    • 1452 Words
    • 5 Pages
    Good Essays
  • Powerful Essays

    IST223 Crib sheet

    • 3425 Words
    • 7 Pages

    rectangles, and relationships are shown by lines between the rectangles. Attributes are generally listed within the rectangle. The many side of many relationships is represented by a crows footentity-relationship (E-R) modelA set of constructs and conventions used to create data models. The things in the users world are represented by entities, and the associations among those things are represented by relationships. The results are usually documented in an entity-relationship (E-R) diagramID-dependent entityan entity whose identifier includes the identifier of another entityidentifierwhich are attributes that name, or identify, entity instancesidentifying relationshipIn such relationships, the parent is always required, but the child (the ID-dependent entity) may or may not be required, depending on application requirements. Identifying relationships are shown with solid lines in E-R diagrams.is-aRelationships among supertype/subtype entitiesmandatoryat least one entity instance must participate in the relationshipmaximum cardinalityThe maximum cardinality is the maximum number of entity instances that can participate in a relationship instance.minimum cardinalityThe minimum cardinality is the minimum number of entity instances that must participate in a relationship instance.nonidentifying relationshiprelationship drawn with a dashed line (refer to Figure 5-7) is used between strong entities and is called a nonidentifying relationship because there are no ID-dependent entities in the relationship.null valueare a problem because they are ambiguous. They can mean that a value is inappropriate, unknown, or known, but not yet been entered into the databaseparentAn entity or row on the one side of a one-to-many relationshiprecursive relationshipoccurs when an entity type has a relationship to itself.relationship classAssociations among entity classesrelationship instanceassociations among entity instances.strong entityan entity that represents something that can exist…

    • 3425 Words
    • 7 Pages
    Powerful Essays
  • Good Essays

    Defining a(n) primary key in a second table creates a relationship between that table and the table where the primary key was first defined. _________________________…

    • 585 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Assign1

    • 1387 Words
    • 16 Pages

    2. Show the result of a project operation that lists the EmpNo, EmpFirstName, and EmpLastName columns of the Employee table.…

    • 1387 Words
    • 16 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Airline reservation database management system will provide features for both costumers of the company and the company itself. Database system will meet almost all needs of an airline company. It will be possible for costumers to make reservations, buy ticket, see and manage old reservations etc. All of these will be held in the database.…

    • 710 Words
    • 3 Pages
    Satisfactory Essays
  • Powerful Essays

    SQL means Structured Query Language. It is the set of commands that is recognized by all RDBMS.…

    • 4250 Words
    • 17 Pages
    Powerful Essays