dbms

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/228

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

229 Terms

1
New cards

🔹 1. Data Modeling & ER Diagrams

2
New cards

Entity: A real-world object we store data about.

3
New cards
4
New cards
5
New cards

Attribute: A property or characteristic of an entity.

6
New cards
7
New cards
8
New cards

Relationship: Logical link between entities.

9
New cards
10
New cards
11
New cards

Keys:

12
New cards

Candidate Key: Any attribute set that could serve as a primary key.

13
New cards
14
New cards
15
New cards

Primary Key: Main key chosen to uniquely identify records.

16
New cards
17
New cards
18
New cards

Alternate Key: Candidate key not chosen as the primary.

19
New cards
20
New cards
21
New cards

Surrogate Key: Artificial key (e.g., auto-increment ID).

22
New cards
23
New cards
24
New cards

Composite Key: A key with more than one attribute.

25
New cards
26
New cards
27
New cards

Foreign Key (FK): Links records between tables.

28
New cards
29
New cards
30
New cards

Cardinality:

31
New cards

Min Cardinality: Minimum participation in a relationship.

32
New cards
33
New cards
34
New cards

Max Cardinality: Maximum participation.

35
New cards
36
New cards
37
New cards

Crow’s Foot Notation: Used to visually represent cardinality.

38
New cards
39
New cards
40
New cards

Special Entities:

41
New cards

Strong Entity: Exists independently with full primary key.

42
New cards
43
New cards
44
New cards

Weak Entity: Depends on strong entity; uses identifying relationship.

45
New cards
46
New cards
47
New cards
48
New cards

🔹 2. Functional Dependency & Normalization

49
New cards

Functional Dependency: A → B means A determines B.

50
New cards
51
New cards
52
New cards

Determinant: Left side of dependency.

53
New cards
54
New cards
55
New cards

Normalization Goals: Reduce redundancy, fix CUD anomalies.

56
New cards
57
New cards
58
New cards

Normal Forms:

59
New cards

1NF: Eliminate repeating groups.

60
New cards
61
New cards
62
New cards

2NF: No partial dependency (only if composite PK).

63
New cards
64
New cards
65
New cards

3NF: No transitive dependency (non-key depends on non-key).

66
New cards
67
New cards
68
New cards

CUD Anomalies:

69
New cards

Insertion: Can't add data due to missing related info.

70
New cards
71
New cards
72
New cards

Update: Inconsistency due to redundancy.

73
New cards
74
New cards
75
New cards

Deletion: Unintentional data loss.

76
New cards
77
New cards
78
New cards
79
New cards

🔹 3. Database Design

80
New cards

Conceptual Model: High-level (entities, relationships).

81
New cards
82
New cards
83
New cards

Logical Model: Schema-level (attributes, FKs).

84
New cards
85
New cards
86
New cards

Physical Model: Implementation-level (data types, constraints).

87
New cards
88
New cards
89
New cards

Data Types (MySQL Examples):

90
New cards

String: VARCHAR, CHAR

91
New cards
92
New cards
93
New cards

Numeric: INT, DECIMAL(8,2)

94
New cards
95
New cards
96
New cards

Date/Time: DATE, DATETIME

97
New cards
98
New cards
99
New cards

Field Constraints:

100
New cards

Default value