OPIM 3204 knowledge check 3

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

1/93

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:58 AM on 3/12/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

94 Terms

1
New cards

Database model

Conceptual framework describing how data is organized, manipulated, and governed in a database.

2
New cards

Three parts of a database model

Data structures, operations, and rules.

3
New cards

Relational model

Database model that organizes data in tables consisting of rows and columns.

4
New cards

Who developed the relational model

E. F. Codd (1970).

5
New cards

Table (relation)

Structure that stores data in rows and columns.

6
New cards

Column (attribute)

A named field in a table that stores a specific type of data.

7
New cards

Row (tuple)

A record in a table containing values for each column.

8
New cards

Data type (domain)

The set of values allowed in a column.

9
New cards

Cell

A single value at the intersection of a row and column.

10
New cards

Key relational rule about rows

Rows in a table have no inherent order.

11
New cards

Relational algebra

Set of operations used to manipulate relational tables.

12
New cards

SELECT operation

Chooses rows from a table.

13
New cards

PROJECT operation

Chooses columns from a table.

14
New cards

JOIN operation

Combines rows from two tables based on related columns.

15
New cards

UNION operation

Combines rows from two tables.

16
New cards

INTERSECT operation

Returns rows common to two tables.

17
New cards

DIFFERENCE operation

Returns rows in one table but not the other.

18
New cards

SQL

Structured Query Language used to interact with relational databases.

19
New cards

SQL pronunciation

“Sequel” or “S-Q-L”.

20
New cards

DDL

Data Definition Language used to define database structures.

21
New cards

DQL

Data Query Language used to retrieve data.

22
New cards

DML

Data Manipulation Language used to insert, update, and delete data.

23
New cards

DTL

Data Transaction Language used to manage transactions.

24
New cards

DCL

Data Control Language used to control user access.

25
New cards

Literal

A fixed value written directly in SQL.

26
New cards

Keyword

Reserved word with special meaning in SQL.

27
New cards

Identifier

Name of a database object like a table or column.

28
New cards

Expression

Combination of values and operators that evaluates to a result.

29
New cards

Comment

Text ignored by the SQL processor.

30
New cards

CREATE DATABASE

SQL statement used to create a new database.

31
New cards

DROP DATABASE

SQL statement used to delete a database.

32
New cards

USE statement

Selects the active database for SQL queries.

33
New cards

SHOW DATABASES

Displays all databases in the system.

34
New cards

SHOW TABLES

Lists all tables in the current database.

35
New cards

SHOW COLUMNS

Displays columns in a table.

36
New cards

SHOW CREATE TABLE

Displays the SQL statement used to create a table.

37
New cards

CREATE TABLE

SQL statement used to create a table.

38
New cards

DROP TABLE

SQL statement used to delete a table.

39
New cards

ALTER TABLE

SQL statement used to modify an existing table.

40
New cards

Data type

Defines the kind of values a column can store.

41
New cards

Integer data type

Stores whole numbers.

42
New cards

Decimal data type

Stores numbers with fractional values.

43
New cards

Character data type

Stores text.

44
New cards

Date/time data type

Stores dates and times.

45
New cards

Binary data type

Stores data as binary values (0s and 1s).

46
New cards

Spatial data type

Stores geographic data like coordinates.

47
New cards

Document data type

Stores structured documents like JSON or XML.

48
New cards

CHAR

Fixed-length text data type.

49
New cards

VARCHAR

Variable-length text data type.

50
New cards

INT

Integer data type.

51
New cards

DECIMAL

Exact numeric data type with decimal precision.

52
New cards

SELECT statement

Retrieves rows from a table.

53
New cards

Result table

The output returned by a SELECT query.

54
New cards

WHERE clause

Filters rows based on a condition.

55
New cards

Arithmetic operators

Perform mathematical calculations (+, -, *, /, %).

56
New cards

Comparison operators

Compare values (=,

57
New cards

Logical operators

Combine conditions (AND, OR, NOT).

58
New cards

Expression

Combination of operators and operands that produces a value.

59
New cards

NULL

Special value representing unknown or missing data.

60
New cards

NULL is NOT

Not zero and not blank text.

61
New cards

NOT NULL constraint

Prevents a column from containing NULL values.

62
New cards

IS NULL

Operator used to check if a value is NULL.

63
New cards

IS NOT NULL

Operator used to check if a value is not NULL.

64
New cards

INSERT statement

Adds rows to a table.

65
New cards

UPDATE statement

Modifies existing rows in a table.

66
New cards

DELETE statement

Removes rows from a table.

67
New cards

TRUNCATE statement

Deletes all rows from a table quickly.

68
New cards

DEFAULT constraint

Assigns a default value when none is provided.

69
New cards

Primary key

Column or set of columns that uniquely identifies each row.

70
New cards

Primary key requirements

Must be unique and not NULL.

71
New cards

Simple primary key

Primary key consisting of one column.

72
New cards

Composite primary key

Primary key consisting of multiple columns.

73
New cards

AUTO_INCREMENT

Automatically generates increasing numbers for a column.

74
New cards

Foreign key

Column that references the primary key of another table.

75
New cards

Foreign key rules

Must match a primary key value or be NULL.

76
New cards

Composite foreign key

Multiple columns referencing a composite primary key.

77
New cards

Referential integrity

Rule ensuring foreign keys reference valid primary keys.

78
New cards

Fully NULL foreign key

All columns in the key are NULL.

79
New cards

Partially NULL foreign key

Some columns NULL and others not (bad practice).

80
New cards

Referential integrity violation

Occurs when foreign key does not match a primary key.

81
New cards

RESTRICT

Prevents updates or deletes that break referential integrity.

82
New cards

SET NULL

Sets foreign key values to NULL when referenced row is deleted.

83
New cards

SET DEFAULT

Sets foreign key to its default value.

84
New cards

CASCADE

Automatically updates or deletes related rows.

85
New cards

ON DELETE clause

Defines action when referenced primary key is deleted.

86
New cards

ON UPDATE clause

Defines action when referenced primary key is updated.

87
New cards

Constraint

Rule that restricts allowable values in a database.

88
New cards

Column constraint

Applies to a single column.

89
New cards

Table constraint

Applies to multiple columns.

90
New cards

UNIQUE constraint

Ensures values in a column are unique.

91
New cards

CHECK constraint

Enforces logical conditions on column values.

92
New cards

Constraint name

Optional identifier given to a constraint.

93
New cards

ALTER TABLE ADD

Used to add constraints to a table.

94
New cards

ALTER TABLE DROP

Used to remove constraints.