D426 OA Study Guide

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/135

flashcard set

Earn XP

Description and Tags

Flashcards based on the study guide for WGU's D426: Database Management Fundamentals

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

136 Terms

1
New cards

database application

software that helps business users interact with database systems

2
New cards

database administrator

responsible for securing the database system against unauthorized users by enforcing procedures for user access and database availability

3
New cards

What does “authorization” mean in terms of a database?

“Authorization” refers to the process by which a database restricts individual user access to data in specific tables, columns, or rows of the database.

4
New cards

What do the rules of a database do?

They ensure that the data is consistent with structural and business rules.

5
New cards

query processor

the component of a database that interprets queries, creates a plan to modify the database or retrieve data, and returns query results to the application

6
New cards

query optimization

a process that the query processor performs to ensure the most efficient instructions are executed on the data

7
New cards

storage manager

the component of a database that translates the query processor instructions into low-level file-system commands that modify or retrieve data

8
New cards

transaction manager

the component of a database that ensures transactions are properly executed, including preventing conflicts between concurrent transactions and restoring the database to a consistent state in the event of a transaction or system failure

9
New cards

What are the four SQL keywords associated with Data Manipulation Language?

DELETE

UPDATE

INSERT

SELECT

10
New cards

What does the SQL CREATE TABLE statement do?

It creates a new table by specifying the table and column names and assigning each column a data type.

11
New cards

What is analysis in terms of database design?

The phase that specifies database requirements without regard to a specific database system through identification of entities, relationships, and attributes.

12
New cards

What are some alternate names for the Analysis Phase of database design?

conceptual design

entity-relationship modeling

requirements definition

13
New cards

logical design

implements database requirements in a specific database system, which (for relational databases) means converting entities, relationships, and attributes into tables, keys, and columns

14
New cards

physical design

the phase of database design that adds indexes and specifies how tables are organized on storage media

15
New cards

Which phase of database design impacts query performance?

physical design

16
New cards

data independence

the principle that physical design never affects query results

17
New cards

What is an API used for?

To simplify the use of SQL with general-purpose languages.

18
New cards

MySQL Command-Line Client

a text interface included in the MySQL Server download that will return an error code and description when an SQL statement is syntactically incorrect or the database cannot execute the statement

19
New cards

tuple

an ordered collection of elements enclosed in parentheses

20
New cards

table

a data structure with a name, a fixed tuple of columns, and a varying set of rows

21
New cards

data type

a named set of values, from which column values are drawn

22
New cards

Name two synonyms for “table.”

File

Relation

23
New cards

Name two synonyms for “row.”

Record

Tuple

24
New cards

Name two synonyms for “column.”

Field

Attribute

25
New cards

empty table

a table with no rows

26
New cards

A table must have at least one __.

column

27
New cards

What does the DROP TABLE statement do?

delete a table, along with all the table’s rows, from a database

28
New cards

What does the ALTER TABLE statement do?

adds, deletes, or modifies COLUMNS on an existing table

29
New cards

literals

explicit values that are string, numeric, or binary

30
New cards

keywords

words with special meaning in SQL

31
New cards

identifies

objects from the database, like tables, columns, etc.

32
New cards

comments

statements intended only for humans and ignored when by the database when parsing an SQL statement

33
New cards

What are the 5 sublanguages of SQL?

  1. Data Definition Language

  2. Data Query Language

  3. Data Manipulation Language

  4. Data Control Language

  5. Data Transaction Language

34
New cards

What statements are associated with DDL?

ALTER TABLE (CHANGE/ADD/DROP CAD columns)

CREATE VIEW

CREATE INDEX

35
New cards

Data Query Language (DQL)

retrieves data from the database

36
New cards

Data Control Language

controls database user access

37
New cards

Data Transaction Language

manages database transactions

38
New cards

INNER JOIN

returns a dataset that has any matching values in both tables

39
New cards

LEFT JOIN

returns all records from the left table and any matching records from the right table, with NULL values for any missing right table matches

40
New cards

FULL JOIN

returns all records that from both the left and right tables with NULL values for any cells where a row from one table does not have a corresponding value in the other table

41
New cards

If a column or set of columns can be used to join two tables together, then the columns are most likely __.

primary or foreign keys

42
New cards

TINYINT

  • 1 byte

  • Unsigned range: 0 - 255

  • Signed range: -128 - 127

43
New cards

SMALLINT

  • 2 bytes

  • Signed range: -32,768 to 32,767

  • Unsigned range: 0 to 65,535

44
New cards

MEDIUMINT

  • 3 bytes

  • Signed range: -8,388,608 to 8,388,607

    • Unsigned range: 0 to 16,777,215

45
New cards

INTEGER or INT

  • 4 bytes

  • Signed range: -2,147,483,648 to 2,147,483,648

  • Unsigned range: 0 to 4,294,967,295

46
New cards

When do one-to-one relationships happen?

Only when there is a constraint or rule in place, such as if an employee can only be assigned to one cubicle and each cubicle can only be assigned to one employee.

47
New cards

UPDATE statement

modifies existing rows in a table

48
New cards

The UPDATE statement uses the __ clause to specify the new column values.

SET

49
New cards

What happens if no WHERE clause is included in an UPDATE statement?

All rows are updated.

50
New cards

DELETE statement

deletes existing rows in a table

51
New cards

In a DELETE statement, the __ keyword is followed by the table name whose rows are to be deleted.

FROM

52
New cards

TRUNCATE

deletes all rows from a table without deleting the table structure

53
New cards

What happens if the WHERE clause is omitted from a DELETE statement?

All table rows are deleted.

54
New cards

What is the difference between a MERGE and a JOIN?

A MERGE can only be used to add rows onto a target table from a source table, whereas a JOIN statement uses columns in two or more tables with matching values to create a new table with columns from multiple tables.

55
New cards

primary key

a column, or group of columns, used to identify a row

56
New cards

candidate key

a simple or composite column that is unique and minimal

57
New cards

What does minimal mean in terms of table keys?

That all columns are necessary for uniqueness.

58
New cards

What does the project operation do?

select table columns

59
New cards

What does the product operation do?

combine two tables into one result in the manner of a cross join

60
New cards

auto-increment column

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

61
New cards

What are two common errors that database users make when inserting records that include the primary key column?

  1. Manually inserting values for auto-increment primary keys.

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

62
New cards

foreign key

a column, or group of columns, that refer to a primary key on the same or another table

63
New cards

What keywords are used to add a foreign key constraint to a CREATE TABLE statement?

FOREIGN KEY and REFERENCES

64
New cards

When a foreign key constraint is specified, the database __ insert, update, and delete statements that violate referential integrity.

rejects

65
New cards

What are the four referential integrity actions?

  1. RESTRICT

  2. SET NULL

  3. SET DEFAULT

  4. CASCADE

66
New cards

RESTRICT

the default referential integrity action for MySQL, which rejects an insert, update, or delete that violates referential integrity

67
New cards

SET NULL

sets any invalid foreign key values to NULL

68
New cards

What makes a foreign key value invalid?

If there is no matching primary key value.

69
New cards

SET DEFAULT

sets invalid foreign keys to a specified foreign key default value

70
New cards

CASCADE

propagates primary key changes to foreign keys in order to maintain referential integrity

71
New cards

constraint

a rule that governs allowable values in a database

72
New cards

What are constraints based on?

relational and business rules

73
New cards

What does a database do with insert, update, or delete statements that violate constraints?

automatic reject

74
New cards

How are constraints added and dropped?

With ALTER TABLE TableName followed by an ADD, DROP or CHANGE clause and values.

75
New cards

BETWEEN operator

an alternative to using “value >= minValue AND value <= maxValue” to determine if a value is between two other values

76
New cards

The __ operator is used to match text against a pattern using a wildcard character in the WHERE clause.

LIKE

77
New cards

Which wildcard character can stand in for any number of missing characters?

%

78
New cards

Which wildcard character is used to represent a single missing character?

_

79
New cards

alias

a temporary name assigned to a column or table

80
New cards

materialized view

a view for which data is stored at all times and must be refreshed whenever the data in the base table changes

81
New cards

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

WITH CHECK OPTION

82
New cards

entity-relationship model

a high-level representation of data requirements, ignoring implementation details

83
New cards

entity

a person, place, product, concept, or activity

84
New cards

relationship

a statement about two entities

85
New cards

attribute

a descriptive property of an entity

86
New cards

reflexive relationship

a statement about how an entity relates to itself

87
New cards

What shape is used to represent entities on an ER diagram?

rectangle

88
New cards

What are the eight steps of analysis/conceptual design?

  1. Discover entities, relationships, and attributes.

  2. Determine cardinality

  3. Distinguish strong and weak entities

  4. Create supertype and subtype entities.

  5. Implement entities.

  6. Implement relationships.

  7. Implement attributes.

  8. Apply normal form.

89
New cards

cardinality

the maxima and minima of relationship attributes

90
New cards

relationship maximum

the greatest number of instances of one entity that can relate to a single instance of another entity

91
New cards

relationship minimum

the least number of instances of one entity that can relate to a single instance of another entity

92
New cards

In ER diagrams, attribute maximum and minimum follow the attribute name. The __ appears in parentheses.

minimum

93
New cards

If an attribute minimum is 1, then the attribute is __.

required

94
New cards

subtype entity

an entity that is a subset of another entity type, such as managers being a subset of employees, or squares being a subset of rectangles

95
New cards

supertype entity

an entity type that has subsets within the database

96
New cards

IsA relationship

the identifying relationship between a subtype and supertype entity

97
New cards

partition

a group of mutually exclusive subtype entities within a supertype

98
New cards

How does crow’s foot notation depict cardinalities?

  • 0 = a circle

  • 1 = a short line

  • many = three short lines

99
New cards

intangible entity

an entity that is documented in the data model but not tracked with data in the database

100
New cards

weak entity

an entity with no identifying attribute but rather an identifying relationship