D426 Quizlet Flashcards

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/150

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:35 PM on 6/29/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

151 Terms

1
New cards

Software that helps business users interact with database systems.

Database Application

2
New cards

Responsible for securing the database system against unauthorized users. A ___ ___ enforces procedures for user access and database system availability.

Database Administrator

3
New cards

Many database users should have limited access to specific tables, columns, or rows of a database. Database systems authorize individual users to access specific data.

Authorization

4
New cards

Database systems ensure data is consistent with structural and business rules.

Rules

5
New cards

Interprets queries, creates a plan to modify the database or retrieve data, and returns query results to the application. Performs query optimization to ensure the most efficient instructions are executed on the data.

Query Processor

6
New cards

Translates the query processor instructions into low-level file-system commands that modify or retrieve data. Database sizes range from megabytes to many terabytes, so the storage manager uses indexes to quickly locate data.

Storage Manager

7
New cards

Ensures transactions are properly executed. The transaction manager prevents conflicts between concurrent transactions. The transaction manager also restores the database to a consistent state in the event of a transaction or system failure.

Transaction Manager

8
New cards

Data about the database, such as column names and the number of rows in each table.

Metadata

9
New cards

Stores data in tables, columns, and rows, similar to a spreadsheet.

Relational Database

10
New cards

All ___ ___ systems support the SQL query language.

Relational Database

11
New cards

Relational systems are ideal for databases that require an accurate record of every transaction, such as banking, airline reservation systems, and student records.

Relational Database

12
New cards

The newer non-relational systems are called NoSQL, for 'not only SQL', and are optimized for big data.

MongoDB (NoSQL)

13
New cards

INSERT inserts rows into a table. SELECT retrieves data from a table. UPDATE modifies data in a table. DELETE deletes rows from a table.

SQL Statements

14
New cards

A statement that creates a new table by specifying the table and column names. Each column is assigned a data type that indicates the format of column values. Data types can be numeric, textual, or complex.

CREATE TABLE (Statement)

15
New cards

INT stores integer values. DECIMAL stores fractional numeric values. VARCHAR stores textual values. DATE stores year, month, and day.

Data Type

16
New cards

Analysis Logical design Physical design

Database Design

17
New cards

This phase specifies database requirements without regard to a specific database system. Requirements are represented as entities, relationships, and attributes. An entity is a person, place, activity, or thing. A relationship is a link between entities, and an attribute is a descriptive property of an entity.

Analysis Phase, Conceptual Design, Entity-Relationship Modeling (Database Design)

18
New cards

This phase implements database requirements in a specific database system. For relational database systems, ___ design converts entities, relationships, and attributes into tables, keys, and columns.

Logical Design (Database Design)

19
New cards

Specifies indexes, table structures, and partitions. This phase adds indexes and specifies how tables are organized on storage media. Affects query processing speed but never affects the query result.

Physical Design

20
New cards

Allows database designers to tune query performance without changes to application programs.

Data Independence

21
New cards

To simplify the use of SQL with a general-purpose language, database programs typically use an ___ ___ ___.

Application Programming Interface (API)

22
New cards

A text interface included in the MySQL Server download.

MySQL Command-Line Client

23
New cards

'World' database, a database that is usually installed with ___.

MySQL

24
New cards

MySQL Server returns an ___ ___ and description when an SQL statement is syntactically incorrect or the database cannot execute the statement.

Error Code

25
New cards

Data structures that prescribe how data is organized. Operations that manipulate data structures. Rules that govern valid data.

Database Model

26
New cards

An ORDERED collection of elements enclosed in parentheses.

Tuple

27
New cards

A ___ has a name, a fixed tuple of columns, and a varying set of rows.

Table

28
New cards

A ___ has a name and a data type.

Column

29
New cards

Is an unnamed tuple of values. Each value corresponds to a column and belongs to the column's data type.

Row

30
New cards

A ___ ___ is a named set of values, from which column values are drawn.

Data Type

31
New cards

Selects all rows of two tables.

Union

32
New cards

Computes functions over multiple table rows, such as sum and count.

Aggregate

33
New cards

Rules that are logical constraints and ensure data is valid.

Relational Rules

34
New cards

SQL is the standard language for relational databases, and is commonly supported in non-relational databases.

The standard language for Relational Databases…

35
New cards

Explicit values that are string, numeric, or binary.Strings must be surrounded by single quotes or double quotes.Binary values are represented with x'0' where the 0 is any hex value.

Literals (SQL Syntax)

36
New cards

Words with special meaning. ex. SELECT, FROM, WHERE

Keywords (SQL Syntax)

37
New cards

Objects from the database like tables, columns, etc. ex. City, Name, Population

Identifiers (SQL Syntax)

38
New cards

Data Definition Language (DDL) defines the structure of the database. Data Query Language (DQL) retrieves data from the database. Data Manipulation Language (DML) manipulates data stored in a database. Data Control Language (DCL) controls database user access. Data Transaction Language (DTL) manages database transactions.

SQL Sublanguages

39
New cards

A single column of a single row.

Cell

40
New cards

Rows

Not Ordered

41
New cards

Rule 7. Allows database administrators to improve query performance by changing the organization of data on storage devices, without affecting query results.

Data Independence

42
New cards

Statement that deletes a table, along with all the table's rows, from a database.

DROP TABLE

43
New cards

Statement that adds, deletes, or modifies columns on an existing table.

ALTER TABLE

44
New cards

4 bytes

INT

45
New cards

2 bytes

SMALLINT

46
New cards

8 bytes

BIGINT

47
New cards

1 byte

TINYINT

48
New cards

3 bytes

MEDIUMINT

49
New cards

Divides one numeric value by another and returns the integer remainder

% (Modulo)

50
New cards

Raises one numeric value to the power of another.

^

51
New cards

Compares two values for equality.

=

52
New cards

Compares two values for inequality.

!=

53
New cards

A special value that represents either unknown or inapplicable data.

NULL

54
New cards

INTO clause names the table and columns where data is to be added. The keyword INTO is optional. VALUES clause specifies the column values to be added.

INSERT Statement (Clauses)

55
New cards

INSERT [INTO] TableName (Column1, Column2, …) VALUES (Value1, Value2, …)

INSERT Statement (Syntax)

56
New cards

Uses the SET clause to specify the new column values. An optional WHERE clause specifies which rows are updated. Omitting the WHERE clause results in all rows being updated.

UPDATE Statement (Clauses)

57
New cards

The FROM keyword is followed by the table name whose rows are to be deleted. An optional WHERE clause specifies which rows should be deleted. Omitting the WHERE clause results in all rows in the table being deleted.

DELETE Statement (Keywords/Clauses)

58
New cards

Deletes all rows from a table.

TRUNCATE Statement

59
New cards

A ___ ___ is a constraint on a column, or group of columns, used to identify a row. The ___ ___ is usually the table's first column and appears on the left of table diagrams, but the position is not significant to the database. A solid circle (●) notates these in table diagrams. MUST BE \Unique\ and \Not NULL\

Primary Key

60
New cards

A key that consists of a SINGLE column.

Simple Primary Key

61
New cards

A key that consists of multiple columns and is denoted with parenthesis. MUST BE Minimal, meaning only NECESSARY primary keys may be involved. In it's minimal stage, if one of these keys is removed it then becomes no longer unique.

Composite Key

62
New cards

Database users occasionally make the following errors when inserting primary keys: Inserting values for auto-increment primary keys. Omitting values for primary keys that are not auto-increment columns. MySQL allows insertion of a specific value to an auto-increment column. However, overriding auto-increment for a primary key is usually a mistake.

Auto-Increment

63
New cards

Is a column, or group of columns, that refer to a primary key. An empty circle (○) represents foreign keys in table diagrams, and an arrow leads to the referenced primary key. When a ___ ___ constraint is specified, the database rejects insert, update, and delete statements that violate referential integrity. Referential integrity requires ___ ___ values must either be NULL or match some value of the referenced primary key.

Foreign Key

64
New cards

___ rejects an insert, update, or delete that violates referential integrity.

RESTRICT

65
New cards

Propagates primary key changes to foreign keys.

CASCADE

66
New cards

A ___ is a rule that governs allowable values in a database based on relational and business rules.

Constraint

67
New cards

The ___ constraint ensures that values in a column, or group of columns, are NEVER REPEATED.

UNIQUE (Constraint)

68
New cards

The ___ constraint specifies an expression on one or more columns of a table.

CHECK (Constraint)

69
New cards

Constraints are added and dropped with the ALTER TABLE TableName followed by an ADD, DROP, or CHANGE clause.

Adding and Dropping Constraints

70
New cards

The ___ operator provides an alternative way to determine if a value is between two other values.

BETWEEN (Operator)

71
New cards

The ___ operator, when used in a WHERE clause, matches text against a pattern using the two wildcard characters % and _.

LIKE (Operator)

72
New cards

The ___ ___ clause orders selected rows by one or more columns in ascending (alphabetic or increasing) order. The DESC keyword with the ORDER BY clause orders rows in descending order.

ORDER BY (Clause)

73
New cards

Returns the absolute value of n. Distance from zero. Always a positive number or zero.

ABS(n) (Function)

74
New cards

Returns the lowercase \s. Or any specified characters.

LOWER(s) (Function)

75
New cards

Returns the string \s\ without leading and trailing spaces

TRIM(s) (Function)

76
New cards

Returns the hour, minute, or second from time t

HOUR(t) MINUTE(t) SECOND(t) (Function)

77
New cards

COUNT() counts the number of rows in the set. MIN() finds the minimum value in the set. MAX() finds the maximum value in the set. SUM() sums all the values in the set. AVG() computes the arithmetic mean of all the values in the set.

Aggregate (Function)

78
New cards

The HAVING clause is used with the GROUP BY clause to filter group results.

HAVING (Clause)

79
New cards

A ___ is a SELECT statement that combines data from two tables, known as the left table and right table, into a single result. The tables are combined by comparing columns from the left and right tables, usually with the = operator.

JOIN

80
New cards

A column name can be replaced with an alias. The alias follows the column name, separated by an optional AS keyword.

AS (Alias)

81
New cards

Selects only matching left and right table rows.

INNER JOIN

82
New cards

Selects all left and right table rows, regardless of match.

FULL JOIN

83
New cards

Selects all left table rows, but only matching right table rows.

LEFT JOIN

84
New cards

Selects all right table rows, but only matching left table rows.

RIGHT JOIN

85
New cards

Any join that selects unmatched rows, including left, right, and full joins.

OUTER JOIN

86
New cards

The ___ keyword combines the two results into one table.

UNION (Keyword)

87
New cards

An ___ compares columns of two tables with the = operator. This is the most common type of join.

EQUIJOIN

88
New cards

A non-equijoin compares columns with an operator other than =, such as < and >.

NON-EQUIJOIN

89
New cards

A ___ combines two tables without comparing columns without an ON clause. This is the only JOIN that does not require a condition.

CROSS-JOIN

90
New cards

A ___ joins a table to itself.

SELF-JOIN

91
New cards

Sometimes called a nested query or inner query, is a query within another SQL query.

Subquery

92
New cards

In some databases, view data can be stored. A ___ ___ is a view for which data is stored at all times. Whenever a base table changes, the corresponding view tables can also change, so this view must be refreshed.

Materialized View

93
New cards

When ___ ___ ___ is specified, the database rejects inserts and updates that do not satisfy the view query WHERE clause.

WITH CHECK OPTION

94
New cards

An ___ entity is documented in the data model, but not tracked with data in the database. In an ER diagram, intangible entities are distinguished with special notation, such as a dashed rectangle or distinct color.

Intangible Entity

95
New cards

Weak Entities

Dependent Entities

96
New cards

A group of related entities.

Subject Area

97
New cards

Commonly used for software development. Software data structures are similar to database structures

Unified Modeling Language (UML)

98
New cards

Each entity becomes a table and each attribute becomes a column. Tables and columns are revised in subsequent steps.

Logical Design Phase (First Step)

99
New cards

Informally, a table is in ___ ___ ___ when all non-key columns depend on the key, the whole key, and nothing but the key.

Third Normal Form

100
New cards

A table is in ___ ___ ___ when all non-key columns depend on the whole primary key. In other words, a non-key column cannot depend on part of a composite primary key. A table with a simple primary key is in this form.

Second Normal Form