dbms final exam

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

1/69

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:33 PM on 5/5/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

70 Terms

1
New cards

data

raw, unprocessed facts stored in a database

2
New cards

information

processed data that support decision making

3
New cards

metadata

data that described the structure of data (“data about data”)

4
New cards

DBMS

software that manages a database and controls access; reduces redundancy and allows multi-user access

5
New cards

data dictionary

stores definition (metadata) of all data in the database

6
New cards

table/relation

organizes data into rows and columns

7
New cards

row/tuple/record

a single entry in a table; represents on instance

8
New cards

column/attribute/field

a characteristic stored for each recordsc

9
New cards

schema

the overall structure/definition of a database d

10
New cards

degree

number of columns (attributes) in a table

11
New cards

cardinality

number of rows in a table

12
New cards

domain

the set of valid values for an attribute

13
New cards

primary key

uniquely identifies each record; must be unique and NOT NULL (entity integrity)

14
New cards

foreign key

references the primary key in another table; enforces referential integrity

15
New cards

candidate key

any attribute that could serve as a primary key; when multiple choices exist, one is selected as the primary key

16
New cards

composite key

a key made of two or more attributes combined; valid only if the collection uniquely identifies an instance and no smaller subset does

17
New cards

secondary key

an attribute likely used for searching; not unique; fields should be indexed for faster retrieval

18
New cards

schema

the blueprint/structure of a database — tables, columns, data types, constraints, and relationships. it does NOT contain actual data

19
New cards

internal schema

how data is physically stored on disk

20
New cards

conceptual schema

the logical structure (tables, keys, relationships); what you design in ER diagramse

21
New cards

external schema/view

what a specific user or app sees (a subset of the full schema)

22
New cards

table/relation

named collection of rows and columns

23
New cards

column/attribute

name + data type

24
New cards

constraint

rule enforced on data: PRIMARY KEY, FOREIGN KEY, NOT NULL, UNIQUE, CHECK

25
New cards

relationship

defined by foreign key references between tables

26
New cards

PRIMARY KEY

unique + NOT NULL; one per table

27
New cards

FORIEGN KEY

must match an existing primary key in the referenced table (referential integrity)

28
New cards

NOT NULL

column cannot be empty

29
New cards

UNQIUE

all values in column must differ (but CAN be NULL)

30
New cards

CHECK

custom rule

31
New cards

normalization

the process of organizing data to reduce redundancy and prevent anomalies

32
New cards

1NF (First Normal Form)

all attributes must contain atomic (single, indivisible) values; no repeating groups or lists in a cell

33
New cards

2NF (Second Normal Form)

must be in 1NF; every non-key attribute must depend on the entire primary key (no partial dependencies)

34
New cards

3NF (Third Normal Form)

must be in 2NF; no non-key attribute may depend on another non-key attribute (no transitive dependencies)

35
New cards

BCNF (boyce-codd normal form)

stricter version of 3NF; every determinant must be a candidate key

36
New cards

Functional Dependencies

If attribute A determines the values of attribute B, we say A functionally determines B, or B is functionally dependent on A. Written as A—>B; all attributes of an entity are functionally dependent on the primary key

37
New cards

Full Functional Dependency

a non-key attribute depends on the complete composite key (required for 2NF)

38
New cards

Partial Functional Dependency

a non-key attribute depends on only part of a composite key (violates 2NF)

39
New cards

Transitive Functional Dependency

a non-key attribute depends on another non-key attribute, e.g., A —> B —> C (violates 3NF)

40
New cards

entity

a data object for which we store information

41
New cards

attribute

a property of an entity

42
New cards

simple attribute

cannot be divided further

43
New cards

composite attribute

can be broken into smaller parts

44
New cards

derived attribute

calculated from other attributes; shown as a dashed ellipse

45
New cards

multivalued attribute

can hold multiple values for one entity; shown as double ellipse

46
New cards

identifier attribute

uniquely identifies an entity instance

47
New cards

Rectangle

entity

48
New cards

Ellipse/Oval

attribute

49
New cards

Double ellipse

multivalued attribute

50
New cards

dashed ellipse

derived attribute

51
New cards

diamond

relationship

52
New cards

double rectangle

weak entity

53
New cards

strong entity

exists independently; has its own primary key

54
New cards

Weak entity

depends on a parent (strong) entity to exist; has no standalone key

55
New cards

Associative entity

resolves M:N relationships; bridges two entities

56
New cards

Unary

entity related to itself (recursive relationship)

57
New cards

Binary

relationship between 2 entities (most common)

58
New cards

Ternary

relationship among 3 entities

59
New cards

1:1 (One to One)

one entity relates to exactly one other

60
New cards

1:M (One to Many)

one entity relates to many

61
New cards

M:N (Many to Many)

many entities relate to many; resolved with an associative entity

62
New cards

Optional Participation

entity does NOT have to participate in a relationship

63
New cards

Degree of a relationship

the number of entities involved

64
New cards

Supertype

general entity with shared attributes

65
New cards

Subtype

more specific version; inherits all supertype attributes

66
New cards

specialization

top-down: start with general entity —> define specific subtypes

67
New cards

generalization

bottom-up: combine specific entities —> create a general supertype

68
New cards

subtype discriminator

attribute that determines which subtype an entity belongs to

69
New cards

multivalued attribute

an attribute that holds more than one value for a single entity instance; represented by a double ellipse in ER diagrams

Example: an Employee can have multiple phone numbers, degrees, or skills

70
New cards

4NF (Fourth Normal Form)

must be in BCNF; a table must not contain more than one independent multivalued dependency