
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
WGU D426 Data Management Foundations 2026/2027 Study Guide PDF with Solution
Typology: Exercises
1 / 24
This page cannot be seen from the preview
Don't miss anything!

















database application software that helps business users interact with database systems
database administrator responsible for securing the database system against unauthorized users. A _____ enforces procedures for user access and database system availability.
Authorization 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.
Give this one a go later!
1 database application 2 Data Type
self-join 4 query processor
Don't know?
Press any key to continue Continue
Rules Database systems ensure data is consistent with structural and business rules
query processor interprets queries, creates a plan to modify the database or retrieve data, and returns query results to the application.
Storage Manager 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 _____ uses indexes to quickly locate data.
Transaction Manager ensures transactions are properly executed. The ______ prevents conflicts between concurrent transactions. The _______ also restores the database to a consistent state in the event of a transaction or system failure.
INSERT inserts rows into a table.
INSERT INTO table_name (column_name1, column_name2, ...) VALUES (DEFAULT, 'bob', 30, 150);
INT, DECIMAL, VARCHAR, DATE stores integer values stores fractional numeric values stores textual values stores year, month, and day
Analysis Phase specifies database requirements without regard to a specific database system. Requirements are represented as entities, relationships, and attributes.
entity Is a person, place, activity, or thing. Singular.
relationship is a link between entities, and an attribute is a descriptive property of an entity.
Analysis alternate names conceptual design, entity-relationship modeling, and requirements definition.
logical design phase implements database requirements in a specific database system. For relational database systems, ____ converts entities, relationships, and attributes into tables, keys, and columns.
physical design phase adds indexes and specifies how tables are organized on storage media. _____ affects query processing speed but never affects the query result. The principle that _____ never affects query results is called data independence.
API To simplify the use of SQL with a general-purpose language, database programs typically use an application programming interface
MySQL Command-Line Client text interface included in the MySQL Server download. MySQL Server returns an error code and description when an SQL statement is syntactically incorrect or the database cannot execute the statement.
tuple s an ordered collection of elements enclosed in parentheses. Ex: (a, b, c) and (c, b, a) are different, since tuples are ordered.
Table Data Structure has a name, a fixed tuple of columns, and a varying set of rows
Column Data Structure has a name and a data type
Row Data Structure an unnamed tuple of values. Each value corresponds to a column and belongs to the column's data type
Comments Statement intended only for humans and ignored by the database when parsing an SQL statement.
Ex. -- single line comment. / multi-line Comment /
SQL Sublanguages 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
CREATE TABLE statement creates a new table by specifying the table name, column names, and column data types
INT or INTEGER integer values
VARCHAR(N) Values with 0 to N Characters
Date Date Values YYY-MM-DD
TIME hh:mm:ss
Decimal(M,D) numeric values with M digits, of which D digits follow the decimal point
DROP TABLE deletes a table, along with all the table's rows, from a database
DDL
ALTER TABLE statement adds, deletes, or modifies columns on an existing table
DDL
Integer Data Types Ex. 34 and -
TINYINT Signed Range: -128 to 127 Unsigned Range: 0 to 255 SMALLINT Signed Range: -32,768 to 32767 Unsigned Range: 0 to 65535 MEDIUMINT Signed Range: -8,388,608 to 8,388,607 Unsigned Range: 0 to 16,777, INT Signed Range: -2,147,483,647 to 2,147,483,647 Unsigned Range: 0 to 4,294,962, BIGINT Signed Range: -2^63 to 2^63 -1 Unsigned Range: 0 to 2^64 -
TRUNCATE statement deletes all rows from a table. _____ is nearly identical to a DELETE statement with no WHERE clause except for minor differences that depend on the database system.
MERGE statement selects data from one table, called the source, and inserts the data to another table, called the target.
primary key is a column, or group of columns, used to identify a row. The _____ is usually the table's first column
simple primary key consists of a single column
composite primary key consists of multiple columns.
auto-increment column is a numeric column that is assigned an automatically incrementing value when a new row is inserted.
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.
foreign key s a column, or group of columns, that refer to a primary key
FOREIGN KEY constraint A _____ is added to a CREATE TABLE statement with the FOREIGN KEY and REFERENCES keywords. When a _____ is specified, the database rejects insert, update, and delete statements that violate referential integrity
Referential integrity actions RESTRICT rejects an insert, update, or delete that violates referential integrity. SET NULL sets invalid foreign keys to NULL. SET DEFAULT sets invalid foreign keys to the foreign key default value. CASCADE propagates primary key changes to foreign keys.
constraint A _____ is a rule that governs allowable values in a database. ______ are based on relational and business rules,
Adding and dropping constraints ALTER TABLE TableName followed by an ADD, DROP, or CHANGE clause
BETWEEN operator Provides an alternative way to determine if a value is between two other values
JOIN 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.
Alias a column name can be replaced with an ____. The _____ follows the column name, separated by an optional AS keyword.
Join 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.
INNER JOIN combine records from two tables whenever there are matching values in a field common to both tables
FULL JOIN selects all left and right table rows, regardless of match
Equijoins An _____ compares columns of two tables with the = operator. Most joins are _____.
A _____ compares columns with an operator other than =, such as < and >.
Self-joins joins a table to itself.
Cross-joins combines two tables without comparing columns. A _____ uses a ______ clause without an ON clause.
subquery sometimes called a nested query or inner query, is a query within another SQL query.
materialized view a view for which data is stored at all times. Whenever a base table changes, the corresponding view tables can also change, so _____ must be refreshed.
WITH CHECK OPTION When _________ is specified, the database rejects inserts and updates that do not satisfy the view query WHERE clause
entity-relationship model Is a high-level representation of data requirements, ignoring implementation details
reflexive relationship A ______ relates an entity to itself
Analysis steps 1. Discover Entities, relationships, and attributes
Logical Design Steps (After Analysis Steps) 5. Implement Entities
cardinality refers to maxima and minima of relationships and attributes.
Relationship maximum is the greatest number of instances of one entity that can relate to a single instance of another entity.
Relationship minimum is the least number of instances of one entity that can relate to a single instance of another entity.
subtype entity, supertype entity A _____ is a subset of another entity type, called the _____ Ex: Managers are a subset of employees, so Manager is a _____ of the Employee _____. On ER diagrams, _____are drawn within the _____. Vehicle _____ and "car" "truck" "motorcycle" _____
IsA relationship The identifying relationship
Partitions A _____ of a supertype entity is a group of mutually exclusive subtype entities
crow's foot notation depicts cardinality as a circle (zero), a short line (one), or three short lines (many). The three short lines look like a bird's foot, hence the name "_____".
intangible entity is documented in the data model, but not tracked with data in the database
Trivial dependencies When the columns of A are a subset of the columns of B, A always depends on B. Ex: FareClass depends on (FlightCode, FareClass). This redundancy is eliminated with normalization, the last step of logical design.
Normalization _____ eliminates redundancy by decomposing a table into two or more tables in higher normal form.
Denormalization Intentionally introducing redundancy by merging tables
Heap Table In a _____, no order is imposed on rows. ______ optimize insert operations. ______ are particularly fast for bulk load of many rows, since rows are stored in load order
Sorted Table In a _____, the database designer identifies a sort column that determines physical row order.
Hash Table In a _____, rows are assigned to buckets. A bucket is a block or group of blocks containing rows. The modulo function is a simple hash function with four steps
Table Cluster Also called multi-tables, interleave rows of two or more tables in the same storage area.
table scan It is a database operation that reads table blocks directly, without accessing an index.
index scan Database operation that reads index blocks sequentially, in order to locate the needed table blocks.
Hit ratio ____, also called filter factor or selectivity, is the percentage of table rows selected by a query. When a SELECT query is executed
binary search In a ___, the database repeatedly splits the index in two until it finds the entry containing the search value:
Dense Index Contains an entry for every table row.
Sparse Index Contains an entry for every table block
Hash Index Index entries are assigned to buckets
Bitmap Index A _______ is a grid of bits: Contains ones and zeros.
Tablespace A _____ is a database object that maps one or more tables to a single file CREATE ______