0 Bewertungen0% fanden dieses Dokument nützlich (0 Abstimmungen)
56 Ansichten1 Seite
This document contains instructions for four database modeling tasks:
1. Model the relationships between painters, paintings, and galleries in the UBA database using a network structure.
2. Create an ERD for the ProdCo database modeling sales representatives, departments, customers, and invoices.
3. Create an ERD for MegaCo modeling divisions, departments, employees, and their relationships.
4. Identify primary keys, foreign keys, and relationships in tables modeling employees, jobs, benefits, and plans.
This document contains instructions for four database modeling tasks:
1. Model the relationships between painters, paintings, and galleries in the UBA database using a network structure.
2. Create an ERD for the ProdCo database modeling sales representatives, departments, customers, and invoices.
3. Create an ERD for MegaCo modeling divisions, departments, employees, and their relationships.
4. Identify primary keys, foreign keys, and relationships in tables modeling employees, jobs, benefits, and plans.
This document contains instructions for four database modeling tasks:
1. Model the relationships between painters, paintings, and galleries in the UBA database using a network structure.
2. Create an ERD for the ProdCo database modeling sales representatives, departments, customers, and invoices.
3. Create an ERD for MegaCo modeling divisions, departments, employees, and their relationships.
4. Identify primary keys, foreign keys, and relationships in tables modeling employees, jobs, benefits, and plans.
COMPED 08 – DATABASE SYSTEMS An EMPLOYEE can participate in many
PLANS, and any PLAN can be assigned to
Final Project many EMPLOYEES. 1. United Book Artists (UBA) is a broker for not- Note: M:N relationship has been broken down into two so-famous painters. UBA maintains a small 1:M relationships for which the BENEFITS table serves network database to track painters, paintings as the composite or bridge entity and galleries. Using PAINTER, PAINTING and GALLERY, write the network structure and EMPLOYEE identify appropriate sets within the UBA EMP_CODE EMP_LNAME JOB_CODE database. (Hint 1: A painting is painted by a 14 Rudell 2 particular artist, and that painting is exhibited in a particular gallery. Hint 2: A gallery can 15 McDale 1 exhibit many paintings, but each painting can 16 Ruellardo 1 be exhibited in only one gallery. Similarly, a 17 Smith 3 painting is painted by a single painter, but 20 Smith 2 each painter can paint many paintings). JOB JOB_CODE JOB_DESC 2. Create a Crow’s Foot ERD to include the 1 CLERICAL following business rules for the ProdCo 2 TECHNICAL Company: 3 MANAGERIAL a. Each sales representative writes many BENEFIT invoices. EMP_CODE PLAN_CODE b. Each invoice is written by one sales 15 2 representative. 15 3 c. Each sales representative is assigned to 16 1 one department. 17 1 d. Each department has many sales representatives 17 3 e. Each customer can generate many 17 4 invoices. 20 3 f. Each invoice is generated by one PLAN customer. PLAN_CODE PLAN_DESCRIPTION 1 TERM LIFE 3. Create a Crow’s Foot ERD for the following 2 STOCK PURCHASE descriptions. (note: the word many merely 3 LONG-TERM DISABILITY means “more than one” in the database 4 DENTAL modeling environment) a. Each of the MegaCo Corporation’s a. For each table above, identify the primary keys divisions is composed of many and the foreign keys. If a table does not contain departments. Each department has many any FK, write none. employees assigned to it., but each b. Create the ERD to show the relationship employee works for only one department. between EMPLOYEE and JOB. Each department is managed by one c. CREATE the ERD to shows the relationships employee, and each of those managers among EMPLOYEE, BENEFIT, JOB and PLAN. can manage only one department at a d. CREATE the relational diagram to show the time. relationships among EMPLOYEE, BENEFIT, b. During some period of time, a customer JOB and PLAN. can rent many videotapes from the BigVid store. Each of the BigVid’s videotapes can be rented to many customers during the period of time. c. The KwikTite Corporation operates many factories. Each factory is located in a region. Each region can be “home” to many of KwikTite’s factories. Each factory employs many employees but each of those employees is employed by only one factory.
4. Use the database shown below. The database
is composed of 4 tables that reflects the relationships: An EMPLOYEE has only one JOB_CODE, but a JOB_CODE can be held by many EMPLOYEEs.
The Star Interview: The Ultimate Guide to a Successful Interview, Learn The Best Practices On How to Ace An Interview As Well As Crucial Mistakes You Need to Avoid In Order To Land the Job