Supertype/Subtype Relationships – Practice Flashcards

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

1/44

flashcard set

Earn XP

Description and Tags

45 question-and-answer flashcards reviewing supertype/subtype concepts, examples, and diagramming practices from the lecture notes.

45 Terms

1
New cards

Which entity acts as the supertype in an educational-institution EER diagram that includes Faculty, Staff, and Students?

MEMBER

2
New cards

Which shared attributes belong inside the MEMBER rectangle?

Member ID, Name, Email

3
New cards

Identify the subtypes for the MEMBER supertype.

FACULTY, STAFF, STUDENT

4
New cards

Which attribute is unique to the FACULTY subtype?

Department

5
New cards

Which attribute is unique to the STAFF subtype?

Position

6
New cards

Which attribute is unique to the STUDENT subtype?

Major

7
New cards

In a vehicle EER diagram, what is the supertype and what are its subtypes?

Supertype: VEHICLE; Subtypes: CAR, TRUCK, MOTORCYCLE

8
New cards

Which attributes belong to the CAR subtype?

Number of Doors, Trunk Size

9
New cards

Which attributes belong to the TRUCK subtype?

Payload Capacity, Number of Axles

10
New cards

Which attributes belong to the MOTORCYCLE subtype?

Engine Capacity, Type

11
New cards

How do CAR, TRUCK, and MOTORCYCLE inherit attributes?

Each subtype inherits Vehicle ID, Manufacturer, and Model from the VEHICLE supertype

12
New cards

In a hospital model, what is the supertype for Inpatients and Outpatients?

PATIENT

13
New cards

Which attributes are stored in the PATIENT supertype?

Patient ID, Name, Admit Date

14
New cards

Which attributes are unique to the INPATIENT subtype?

Room Number, Discharge Date

15
New cards

Which attributes are unique to the OUTPATIENT subtype?

Visit Date, Doctor ID

16
New cards

How are PATIENT, INPATIENT, and OUTPATIENT connected in the EER diagram?

Via a circle attached to PATIENT with lines to INPATIENT and OUTPATIENT

17
New cards

When should supertype/subtype relationships be used in data modeling?

When some, but not all, instances share certain attributes

18
New cards

Give an example where a supertype/subtype relationship is beneficial in a university database.

Separating students into graduate and undergraduate, each with different attributes

19
New cards

Which attributes are common to both graduate and undergraduate students?

Student ID, Name, Enrollment Date

20
New cards

Which attributes are specific to graduate students?

Thesis Topic and Advisor

21
New cards

How do supertypes reduce redundancy in data modeling?

By letting attributes be associated only with the relevant subtypes

22
New cards

In an organization model, what is the supertype for Full-time, Part-time, and Interns?

EMPLOYEE

23
New cards

Which attributes are common to all employees?

Employee ID, Name, Date of Joining

24
New cards

Which attributes are unique to Full-time employees?

Salary and Benefits

25
New cards

Which attribute is unique to Part-time employees?

Hourly Rate

26
New cards

Which attributes are unique to Interns?

Stipend and Internship Duration

27
New cards

How do the subtypes Full-time, Part-time, and Intern relate to EMPLOYEE regarding attribute inheritance?

They inherit all attributes from EMPLOYEE

28
New cards

In a retail company, what is the supertype for Perishable and Non-perishable products?

PRODUCT

29
New cards

Which attributes belong to the PRODUCT supertype?

Product ID, Name, Price

30
New cards

Which unique attribute belongs to the PERISHABLE subtype?

Expiry Date

31
New cards

Which unique attribute belongs to the NON-PERISHABLE subtype?

Warranty Period

32
New cards

How is the relationship between PRODUCT, PERISHABLE, and NON-PERISHABLE shown in an EER diagram?

Rectangle PRODUCT connected to a circle, which connects to rectangles PERISHABLE and NON-PERISHABLE

33
New cards

What general entity type covers LAPTOP, DESKTOP, and TABLET?

DEVICE

34
New cards

Which attribute is specific to the LAPTOP subtype?

Battery Life

35
New cards

Which attribute is specific to the DESKTOP subtype?

Form Factor

36
New cards

Which attribute is specific to the TABLET subtype?

Screen Size

37
New cards

What is the correct supertype/subtype relationship for DEVICE and its variants?

DEVICE with subtypes LAPTOP (Battery Life), DESKTOP (Form Factor), TABLET (Screen Size)

38
New cards

For EMPLOYEE specialized into FULL-TIME and PART-TIME, which attributes apply to all employees?

Employee ID, Name, Salary, Department

39
New cards

Which attribute is specific to FULL-TIME EMPLOYEE?

Benefits

40
New cards

How should the EMPLOYEE specialization be depicted in an E-R diagram?

EMPLOYEE with subtypes FULL-TIME EMPLOYEE (Benefits) and PART-TIME EMPLOYEE (Hourly Rate)

41
New cards

Which attributes are common to both ELECTRONIC PRODUCT and FURNITURE PRODUCT?

Product ID, Product Name, Price

42
New cards

What should be the supertype for ELECTRONIC PRODUCT and FURNITURE PRODUCT?

PRODUCT

43
New cards

Which attributes belong in the ELECTRONIC PRODUCT subtype?

Warranty Period, Power Consumption

44
New cards

Which attributes belong in the FURNITURE PRODUCT subtype?

Material, Dimensions

45
New cards

How should the supertype/subtype relationship be represented for PRODUCT, ELECTRONIC PRODUCT, and FURNITURE PRODUCT?

PRODUCT with attributes Product ID, Product Name, Price; subtypes ELECTRONIC PRODUCT (Warranty Period, Power Consumption) and FURNITURE PRODUCT (Material, Dimensions)