Intro to Database Week 4 & 5 (midterm)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/20

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 7:24 AM on 4/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

21 Terms

1
New cards

Entity Relationship Model (ER)

A conceptual data model for database design

2
New cards

Entity & Entity set

Entity: Objects represented in database

Entity set: Collection of actual entities in database

3
New cards

Attribute & Key Attribute

Attribute: Properties of an entity

Key Attribute: unique attribute of an entity (can be composite)

4
New cards

What are the 3 types of attributes

Simple Attribute: entity has 1 value

Composite attribute: attribute has many values (address)

Multi-valued attribute: attribute can have many values

5
New cards

Data value

Value of a specific property

6
New cards

Relationship, relationship type & relationship set

Relationship: relate two or more entities

Relationship type: Description of relationship (participants & constraints)

Relationship set: set of relationship instances in database OR state of relationship type

7
New cards

Degree of Relationships

  1. Unary (Recursive)

  2. Binary

  3. Ternary

  4. N-ary relationship

8
New cards

Weak entity

Entity that does not have a key attribute of its own that must be identified by another entry (identifying relationships)

key can be partial key or primary key of identifying (strong) entity

9
New cards

Summary of all the notations

knowt flashcard image
10
New cards

What are the constraints on relationship types (binary)

  1. Cardinality

  2. Participation Constraint (Existence Dependency)

11
New cards

Cardinality Ratio

Specifying maximum participation

  1. One-to-one (1:1)

  2. One-to-many (1:N)

  3. Many-to-many (M:N)

12
New cards

Participation Constraint

Specifying minimum participation

  1. Zero (optional participation, NOT existence dependent

  2. One or more (Total participation, existence deponent)

13
New cards

Notation for Relationship Constraints

knowt flashcard image
14
New cards

Relationship attributes appear in

M..N relationships but put at the n-side for 1-N

15
New cards

Each entity must participate at least ____ and at most ____

min, max

16
New cards

an entity does not have to participate if

they have no constraint (0,N) but it can participate at N times

17
New cards

What are the UML similarities to ER

Class = entity

Relationships = relationship

Multiplicities = cardinality

18
New cards

What are the Relationships in Class Diagram

Association: Two independent objects

Aggregation: two related objects, one is part of the other

Link attributes: similar to relationship attributes

19
New cards

Subclasses/Subtypes (Is-A relationship)

Can only be represented by EER (Extended Entity Relation Model)

subclass inherits all attributes & relationships of superclass

20
New cards

Specialization

Defines a set of subclasses of a superclass

21
New cards

Generalization

subclasses are generalized into one superclass