ENTITYRELATIONSHIP NOTATIONS - PowerPoint PPT Presentation

1 / 20
About This Presentation
Title:

ENTITYRELATIONSHIP NOTATIONS

Description:

gerund. RELATIONSHIP DEGREE. Unary 1. Binary 2. Ternary 3. RELATIONSHIP CARDINALITY ... A company has a number of employees. The attribute of EMPLOYEE include ... – PowerPoint PPT presentation

Number of Views:43
Avg rating:3.0/5.0
Slides: 21
Provided by: hermangr
Category:

less

Transcript and Presenter's Notes

Title: ENTITYRELATIONSHIP NOTATIONS


1
ENTITY-RELATIONSHIP NOTATIONS
  • Basic Symbols
  • entity
  • relationship
  • primary key
  • attribute
  • multi valued attribute
  • gerund

2
RELATIONSHIP DEGREE
  • Unary 1
  • Binary 2
  • Ternary 3

3
RELATIONSHIP CARDINALITY
  • Mandatory 1 cardinality
  • Many (M) cardinality (1,2,., many)
  • Optional 0 or 1 cardinality
  • Optional zero-many cardinality(0,1,2,many)

4
CLASS-SUBCLASS RELATIONSHIP
  • ISA

5
EXCLUSIVE RELATIONSHIP
  • Exclusive relationship
  • U

6
(No Transcript)
7
Employees - Projects
  • A company has a number of employees.
  • The attribute of EMPLOYEE include NAME, ADDRESS,
    and BIRTHDATE.
  • The company also has several projects. Attributes
    of PROJECT include CODE, DESCRIPTION, and START
    DATE.
  • Each employee may be assigned to one or more
    projects, or may not be assigned to a project. A
    project must have at least one employee assigned,
    and may have several employees assigned.

8
M 164 2.a. Employee - Project
9
COURSES
  • A university has a large number of courses in its
    catalog.
  • Attributes include NO., NAME, and UNITS.
  • Each course may have one or more other courses as
    prerequisites.

10
M 164 2.b. COURSES
11
Chemists - Projects Equipment
  • A laboratory has several chemists who work on
    various projects and who may use certain kinds of
    equipment on each project. Attributes of CHEMIST
    include NAME and Phone No. Attributes of PROJECT
    include PROJECT ID and START DATE. Attributes of
    EQUIPMENT include NUMBER and COST.

12
M 164 2.c. Chemist -Projects - Equipment
13
COURSE - SECTIONS
  • A college course may have one or more scheduled
    sections, or may not have a scheduled section.
  • Attributes of COURSE include COURSE ID, SECTION
    NO., and INSTRUCTOR.

14
M 164 2.d. Course-Section
15
VEHICLES
  • Draw an E-R diagram to represent the following
    entity types and the natural relationships among
    them
  • VEHICLE, LAND VEHICLE, WATER VEHICLE, OCEAN
    VESSEL, RIVER RAFT, HELICOPTER, RAIL VEHICLE,
    BICYCLE, AIRPLANE, ROAD VEHICLE, CAR.

16
M 164 3. VEHICLE
17
GRADE REPORT
  • NAME, ID, CAMPUS ADDRESS, MAJOR,
  • COURSE ID, COURSE TITLE
  • INSTRUCTOR NAME, INSTRUCTOR LOCATION
  • GRADE

18
M 164 4.a.
19
HOMEWORK 1
  • DUE MONDAY SEPTEMBER 21, 1998
  • Modern Database Management 4th edition
  • Page 165
  • Problem 5
  • Problem 6
  • Problem 10
  • Problem 12

20
ACCESS - TUTORIAL
  • The class will meet in AH 300
  • next Wednesday September 16, 1998
  • 3 PM
  • to provide you with a hands-on
  • ACCESS TUTORIAL
  • please take advantage of this resource
Write a Comment
User Comments (0)
About PowerShow.com