Search Header Logo
DBMS Week 5

DBMS Week 5

Assessment

Presentation

Computers

12th Grade

Hard

Created by

Bobby Liu

Used 4+ times

FREE Resource

5 Slides • 4 Questions

1

DBMS Week 5

By Bobby Liu

2

Terminology

Relation - Table / File

Tuple - Row / Record

Attribute - Column / Field​

3

Relational Keys

Candidate Key - Minimal set of attributes to uniquely identify tuple

Composite Keys - Multiple attribute keys

Primary Key - One Candidate key to uniquely identify tuple

Alternate Keys - Candidate keys not selected to be primary key​

4

Multiple Select

What are the criteria for choosing a primary key? (More than one answer)

1

Minimal set of attributes

2

Less likely to have its values changed

3

Less likely to lose uniqueness in the future

4

With fewest characters

5

Easier to use from the user's point of view

5

Foreign key must match candidate key of home relation or wholly null

Referential Integrity

Primary key - no nulls

Entity Integrity

Relational Integrity Rules

6

Multiple Choice

Selection

1

Select tuples in a relation that satisfy selection condition

2

Select certain attributes from the relation and discards other attributes

7

Multiple Choice

Intersection

1

Result includes tuples in 2 relations and duplicates are removed

2

Result must include tuples in 2 relations

3

Result includes tuples in one relation only

8

Multiple Choice

Outer Join

1

Combine tuples with same value in join condition

2

Combine tuples and keep all tuples even if there is no matching tuple

3

Combine tuples and keep all tuples if there is matching tuples

9

Cartesian Product

Combine tuples from two relations so that related tuples can be identified

DBMS Week 5

By Bobby Liu

Show answer

Auto Play

Slide 1 / 9

SLIDE