CPSC440

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

1/76

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:15 AM on 3/19/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

77 Terms

1
New cards

What are update operations?

Operations that change data: insert, delete, modify

2
New cards

What is an insert operation?

Adds new rows to a table

3
New cards

What is a delete operation?

Removes data from a table

4
New cards

What is a modify operation?

Changes existing data

5
New cards

What causes update anomalies? - Redundant (repeated) data

6
New cards

What is an insertion anomaly?

Cannot insert data without other unrelated data

7
New cards

What is a deletion anomaly?

Deleting data removes other important data

8
New cards

What is a modification anomaly?

Same data must be updated in multiple places

9
New cards

What is a functional dependency?

One attribute determines another

10
New cards

What does A → B mean?

A determines B

11
New cards

What is a trivial functional dependency?

Attribute determines itself

12
New cards

What is an augmented functional dependency?

Adding unnecessary attributes

13
New cards

What is an equivalent functional dependency?

Two attributes determine each other

14
New cards

What is a full functional dependency?

Entire key determines attribute

15
New cards

What is a partial functional dependency?

Part of composite key determines attribute

16
New cards

When do partial dependencies occur?

Only with composite keys

17
New cards

What is a transitive dependency?

Non-key determines another non-key

18
New cards

What is normalization?

Process to reduce redundancy and anomalies

19
New cards

What is 1NF?

No multi-values; each field has one value

20
New cards

What is 2NF?

1NF + no partial dependencies

21
New cards

What is 3NF?

2NF + no transitive dependencies

22
New cards

Why not always fully normalize?

Performance or practicality reasons

23
New cards

What is denormalization?

Combining tables to improve performance

24
New cards

What is ER modeling?

Designing using entities and relationships

25
New cards

Normalization vs ER modeling?

Different approaches, similar final design

26
New cards

What is DDL?

Defines or changes table structure

27
New cards

What is DML?

Manipulates data (insert, update, delete)

28
New cards

What is DCL?

Controls permissions

29
New cards

What is TCL?

Manages transactions

30
New cards

What does CREATE TABLE do?

Creates a new table

31
New cards

What does DROP TABLE do?

Deletes a table

32
New cards

What does INSERT INTO do?

Adds new data

33
New cards

What does SELECT do?

Retrieves data

34
New cards

What does WHERE do?

Filters rows

35
New cards

What does DISTINCT do?

Removes duplicates

36
New cards

What does ORDER BY do?

Sorts results

37
New cards

What does LIKE do?

Searches for patterns

38
New cards

What are aggregate functions?

COUNT, SUM, AVG, MIN, MAX

39
New cards

What does GROUP BY do?

Groups rows for aggregates

40
New cards

What does HAVING do?

Filters grouped data

41
New cards

What does IN do?

Matches values in a list

42
New cards

What does ALTER TABLE do?

Changes table structure

43
New cards

What does UPDATE do?

Modifies data

44
New cards

What does DELETE do?

Removes data

45
New cards

What does CREATE VIEW do?

Creates a virtual table

46
New cards

What does DROP VIEW do?

Deletes a view

47
New cards

What does IS NULL do?

Checks for null values

48
New cards

What does EXISTS do?

Checks if subquery returns results

49
New cards

What does NOT do?

Reverses a condition

50
New cards

What is a nested query?

A query inside another query

51
New cards

What is a JOIN?

Combines data from multiple tables

52
New cards

What is a self-join?

Table joined with itself

53
New cards

What is an inner join?

Returns matching rows only

54
New cards

What is an outer join?

Includes non-matching rows

55
New cards

Can joins work without PK/FK?

Yes, if values match

56
New cards

What are set operators?

Combine results of queries

57
New cards

What does UNION do?

Combines results without duplicates

58
New cards

What does INTERSECT do?

Returns common rows

59
New cards

What does EXCEPT do?

Returns rows in first but not second

60
New cards

What is constraint management?

Adding/removing rules like foreign keys

61
New cards

What is an alias?

Temporary name for table or column

62
New cards

Why use aliases?

Makes queries shorter and easier

63
New cards

What is referential integrity?

Foreign key must match primary key or be NULL

64
New cards

What does referential integrity enforce?

Relationship between tables

65
New cards

What is DELETE RESTRICT?

Prevents deletion if referenced

66
New cards

What is DELETE CASCADE?

Deletes related records automatically

67
New cards

What is DELETE SET NULL?

Sets foreign keys to NULL after deletion

68
New cards

What is DELETE SET DEFAULT?

Sets foreign keys to default value

69
New cards

What is UPDATE RESTRICT?

Prevents update if referenced

70
New cards

What is UPDATE CASCADE?

Updates related foreign keys automatically

71
New cards

What is UPDATE SET NULL?

Sets foreign keys to NULL on update

72
New cards

What is UPDATE SET DEFAULT?

Sets foreign keys to default value

73
New cards

Where are delete/update options defined?

In FOREIGN KEY constraint

74
New cards

How do you implement DELETE CASCADE?

ON DELETE CASCADE

75
New cards

How do you implement UPDATE SET NULL?

ON UPDATE SET NULL

76
New cards

Can delete and update options be combined?

Yes

77
New cards

Example of both together?

ON DELETE CASCADE ON UPDATE SET NULL

Explore top flashcards

flashcards
Cô Yến 5/12/2024
22
Updated 480d ago
0.0(0)
flashcards
EXAM 2 - part 6
22
Updated 250d ago
0.0(0)
flashcards
Einheit 1 Freunde
75
Updated 229d ago
0.0(0)
flashcards
Biology Honors Evolution
51
Updated 1096d ago
0.0(0)
flashcards
Matiekos egzas
73
Updated 819d ago
0.0(0)
flashcards
Livy 2.10 Vocab
20
Updated 1215d ago
0.0(0)
flashcards
Cô Yến 5/12/2024
22
Updated 480d ago
0.0(0)
flashcards
EXAM 2 - part 6
22
Updated 250d ago
0.0(0)
flashcards
Einheit 1 Freunde
75
Updated 229d ago
0.0(0)
flashcards
Biology Honors Evolution
51
Updated 1096d ago
0.0(0)
flashcards
Matiekos egzas
73
Updated 819d ago
0.0(0)
flashcards
Livy 2.10 Vocab
20
Updated 1215d ago
0.0(0)