D426 Data Management - Foundation Objective Assessment Practice Exam

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/185

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.

186 Terms

1
New cards

Database Application

Software that helps business users interact with database systems.

2
New cards

Database Administrator

The individual who is responsible for safeguarding the database system against unauthorized access and enforcing procedures for user access and system availability.

3
New cards

Database Designer

Determines the format of each data element and the overall database structure.

4
New cards

Authorization

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

5
New cards

Query Processor

Interprets queries, creates a plan to modify the database or retrieve data, and returns query results to the application

6
New cards

Rules

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

7
New cards

What does the query processor perform?

Query optimization to ensure the most efficient instructions are executed on the data.

8
New cards

Storage Manager

Translates the query processor instructions into low-level file system commands that modify or retrieve data.

9
New cards

Indexes

Database sizes range from megabytes to many terabytes, so the storage manager uses indexes to quickly locate data.

10
New cards

Transaction Manager

The transaction manager ensures efficient transaction execution, prevents conflicts between concurrent transactions, and restores the database to a consistent state in case of a transaction or system failure.

11
New cards

Metadata

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

12
New cards

Relational Database

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

13
New cards

SQL Query Language

All relational database systems support this.

14
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.

15
New cards

NoSQL

A nonrelational database.

16
New cards

INSERT

Inserts rows into a table.

17
New cards

SELECT

Retrieves data from a table.

18
New cards

UPDATE

Modifies data in a table.

19
New cards

DELETE

Deletes rows from a table.

20
New cards

CREATE TABLE

Statement creates a new table by specifying the table and column names.

21
New cards

Data Type

Indicates the format column names. These can be numerical, textual or complex.

22
New cards

INT

Stores integer values.

23
New cards

DECIMAL

Stores fractional numeric values.

24
New cards

VARCHAR

Stores textual values.

25
New cards

DATE

Stores year, month, and day.

26
New cards

The Analysis Phase

Specifies database requirements without regard to a specific database system. Requirements are represented as entities, relationships, and attributes.

27
New cards

Analysis

Has many alternative names, conceptual design, entity-relationship modeling, and requirements definition.

28
New cards

What shape represents an Entitiy?

Rectangle

3 multiple choice options

29
New cards

Logical Design Phase

Implements database requirements in a specific database system. For relational database systems, it converts entities, relationships, and attributes into tables, keys, and columns.

30
New cards

Physical Design Phase

Adds indexes and specifies how tables are organized on storage media with SQL statements such as CREATE INDEX and is specific to a database system.

31
New cards

Data Independence

The principle that physical design never affects query results

32
New cards

MySQL Command-Line Client

A text interface that is included in the MySQL Server download.

33
New cards

Error Code

Generated when a SQL statement is syntactically incorrect or the database cannot execute the statement.

34
New cards

Data Structures

Prescribes how data is organized.

35
New cards

Table, Column, Row, & Data Type

Data structures that organizes data in table.

36
New cards

Tuple

An ordered collection of elements is enclosed in parentheses such as (a, b, c) and (a, b, c).

3 multiple choice options

37
New cards

Rules

Governs valid data.

38
New cards

Table

Has a name, a fixed tuple of columns, and a varying set of rows.

39
New cards

Column

Has a name and a data type.

40
New cards

Row

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

41
New cards

Data Type

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

42
New cards

Select

Selects a subset of rows of a table.

43
New cards

Join

Combines two tables by comparing related columns.

44
New cards

Union

Selects all rows of two tables.

45
New cards

Aggregate

Performs a calculation on a set of values and returns a single result. They are commonly used to summarize or analyze data, such as calculating sums, averages, counts, or finding maximum or minimum values within a dataset.

46
New cards

Logical Constraints

Rules that ensure data is valid.

47
New cards

Business Rules

Based on policies that are specific to a particular database.

Ex: PassportNumber values may not repeat in different Employee rows.

48
New cards

Structured Query Language

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

49
New cards

Literals

Explicit values that are string (surrounded by single or double quotes), numeric, or binary (represented with x'0', where '0' is any hex value).

50
New cards

Keywords

Words with special meaning such as SELECT, FROM, and WHERE.

51
New cards

Identifiers

Objects from the database like tables, columns, etc.

Ex. City, Name, Population

52
New cards

Data Definition Language (DDL)

Defines the structure of the database.

53
New cards

Data Query Language (DQL)

Retrieves data from the database.

54
New cards

Data Manipulation Language (DML)

Manipulates data stored in a database.

55
New cards

Data Control Language (DCL)

Controls database user access.

56
New cards

Data Transaction Language (DTL)

Manages database transactions.

57
New cards

Table

Has a name, a fixed sequence of columns, and a varying set of rows.

58
New cards

Column

Has a name and a data type.

59
New cards

Row

An unnamed sequence of values. Each value corresponds to a column and belongs to the column's data type.

60
New cards

Cell

A single column of a single row.

61
New cards

No row order

Rows are not ordered. The organization of rows on a storage device, such as a disk drive, never affects query results.

62
New cards

INT or INTEGER

Integer values

63
New cards

VARCHAR(N)

Values with 0 to N characters.

64
New cards

DATE

Date values in YYYY-MM-DD

3 multiple choice options

65
New cards

DECIMAL(M, D)

Numeric values with M digits, of which D digits follow the decimal point.

66
New cards

ALTER TABLE

Adds, deletes, or modifies columns on an existing table.

67
New cards

Data Type

Is a named set of values from which column values are drawn.

68
New cards

Integer

A data type that represents positive and negative integers. Several integer data types exist, varying by the number of bytes allocated for each value. Common integer data types include INT, implemented as 4 bytes of storage, and SMALLINT, implemented as 2 bytes.

69
New cards

% (modulo)

Divides one numeric value by another and returns the integer remainder.

70
New cards

^

Raises one numeric value to the power of another.

71
New cards

=

An operator that compares two values for equality.

72
New cards

!=

An operator that compares two values for inequality.

73
New cards

NULL

A special value that represents either unknown or inapplicable data.

74
New cards

SET clause

Used by the UPDATE statement to specify the new column values.

75
New cards

FROM

A keyword followed by the table name whose rows are to be deleted. Ex: DELETE ___________ TableName;

76
New cards

TRUNCATE

A statement that deletes all rows from a table.

77
New cards

MERGE

A statement that selects data from one table, called the source, and inserts the data to another table, called the target.

78
New cards

Primary Key

A column, or group of columns (usually the table's first column) that is used to identify a row.

79
New cards

Simple Primary Key

Consists of a single column.

80
New cards

Composite Primary Key

Consists of multiple columns.

81
New cards

Auto-increment

A numeric column that is assigned an automatically incrementing value when a new row is inserted.

82
New cards

Database users occasionally make the following errors when inserting primary keys. What are they?

Inserting values for auto-increment primary keys.

Omitting values for primary keys that are not auto-increment columns.

3 multiple choice options

83
New cards

Foreign Key

A column, or group of columns, that refer to a primary key.

84
New cards

Foreign Key Constraint

Rejects insert, update, and delete statements that violate referential integrity.

85
New cards

CASCADE

Propagates primary key changes to foreign keys.

86
New cards

RESTRICT

Rejects an insert, update, or delete that violates referential integrity.

87
New cards

Constraint

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

88
New cards

UNIQUE

A constraint ensures that values in a column, or group of columns, are unique.

89
New cards

CHECK

A constraint that specifies an expression on one or more columns of a table.

90
New cards

A statement that changes the structure of a table (by adding or dropping) when used with the clauses ADD, DROP, or CHANGE.

ALTER TABLE

91
New cards

IN

An operator used in a WHERE clause to determine if a value matches one of several values.

92
New cards

BETWEEN

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

EX: Written value ___________ minValue AND maxValue and is equivalent to value >= minValue AND value <= maxValue.

93
New cards

LIKE

An operator that is used with a WHERE clause that matches text against a pattern using the two wildcard characters % and _.

94
New cards

% (LIKE Operator)

Matches any number of characters.

Ex: _______ 'L%t' matches "Lt", "Lot", "Lift", and "Lol cat".

95
New cards

ORDER BY

A clause that orders selected rows by one or more columns in ascending (alphabetic or increasing) order.

The DESC keyword with the ____________ clause orders rows in descending order.

96
New cards

ABS(n)

Returns the absolute value of n.

97
New cards

LOWER(s)

Returns the lowercase s.

Ex. SELECT ___________ ('MySQL'); returns 'mysql'

98
New cards

TRIM(s)

Returns the string s without leading and trailing spaces.

Ex. SELECT _________ (' test '); returns 'test'

99
New cards

HOUR(t)

MINUTE(t)

SECOND(t)

Returns the hour, minute, or second from time t

Ex. SELECT ___________ ('22:11:45'); returns 22

100
New cards

Aggregate Function

Processes values from a set of rows and returns a summary value.