WGU D426/427

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

1/96

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.

97 Terms

1
New cards

What is a subquery

A query within another SQL query.

2
New cards

What is an alias in SQL

A temporary name assigned to a column or table, created with the AS keyword.

3
New cards

What is a materialized view

A view for which data is stored at all times and must be refreshed when the base table changes.

4
New cards

What does the WITH CHECK OPTION clause do

Ensures that inserts and updates in a view satisfy the view's WHERE clause.

5
New cards

What is an entity in entity-relationship modeling

A person, place, product, concept, or activity.

6
New cards

What is a relationship in entity-relationship modeling

A statement about two entities.

7
New cards

What is an attribute in entity-relationship modeling

A descriptive property of an entity.

8
New cards

What is a reflexive relationship

A relationship that relates an entity to itself.

9
New cards

What is an entity-relationship diagram (ER diagram)

A schematic picture of entities, relationships, and attributes, where entities are drawn as rectangles.

10
New cards

What is an entity type

A set of things, such as all employees in a company.

11
New cards

What is a relationship type

A set of related things, such as employee-manages-department pairs.

12
New cards

What is an attribute type

A set of values, such as all employee salaries.

13
New cards

What is an entity instance

An individual thing, such as the employee Sam Snead.

14
New cards

What is a relationship instance

A specific statement about entity instances, such as "Maria Rodriguez manages Sales."

15
New cards

What is an attribute instance

An individual value, such as a salary of $35,000.

16
New cards

What is cardinality in entity-relationship modeling

The maxima and minima of relationships and attributes.

17
New cards

What is a subtype entity

A subset of another entity type, called the supertype entity.

18
New cards

What is a supertype entity

An entity that has one or more subtype entities, such as "vehicle" with subtypes like "car" and "truck."

19
New cards

What is an IsA relationship

The identifying relationship between a supertype and its subtypes.

20
New cards

What is a partition in entity-relationship modeling

A group of mutually exclusive subtype entities within a supertype entity.

21
New cards

What is crow's foot notation

A convention for depicting cardinality in ER diagrams, using symbols like circles, short lines, and three short lines (a crow's foot).

22
New cards

What is an intangible entity

An entity documented in the data model but not tracked with data in the database.

23
New cards

What are the characteristics of a primary key

A primary key should be stable, simple, and meaningless.

24
New cards

What is an artificial key

A single-column primary key created by the database designer when no suitable primary key exists.

25
New cards

What is functional dependence

The dependence of one column on another.

26
New cards

What is redundancy in databases

The repetition of related values in a table.

27
New cards

What is a candidate key

A simple or composite column that is unique and minimal, with all columns necessary for uniqueness.

28
New cards

What is a non-key column

A column that is not contained in a candidate key.

29
New cards

What is third normal form

A table is in third normal form if, whenever a non-key column A depends on column B, then B is unique.

30
New cards

What is Boyce-Codd normal form

A stricter form of third normal form where column B must be unique regardless of whether it is a candidate key.

31
New cards

What is a trivial dependency

When the columns of A are a subset of the columns of B, A always depends on B.

32
New cards

What is normalization

The process of eliminating redundancy by decomposing a table into two or more tables in higher normal form.

33
New cards

What is denormalization

The intentional introduction of redundancy by merging tables.

34
New cards

What is a heap table

A table where no order is imposed on rows, optimizing insert operations.

35
New cards

What is a sorted table

A table where rows are physically ordered by a specified sort column.

36
New cards

What is a hash table

A table where rows are assigned to buckets, optimizing search and retrieval.

37
New cards

What is a table cluster

A storage structure that interleaves rows of two or more tables in the same storage area.

38
New cards

What is a table scan

A database operation that reads table blocks directly without using an index.

39
New cards

What is an index scan

A database operation that reads index blocks sequentially to locate the needed table blocks.

40
New cards

What is a hit ratio (filter factor

selectivity), The percentage of table rows selected by a query.

41
New cards

What is a binary search

A search method where the database repeatedly splits the index in two until the search value is found.

42
New cards

What is a dense index

An index that contains an entry for every table row.

43
New cards

What is a sparse index

An index that contains an entry for every table block.

44
New cards

What is a hash index

An index where entries are assigned to buckets.

45
New cards

What is a bitmap index

A grid of bits representing a set of values, with ones and zeros used to indicate the presence of values.

46
New cards

What is a tablespace

A database object that maps one or more tables to a single file.

47
New cards

What does the CREATE INDEX statement do

Creates an index on specified columns in a table.

48
New cards

What is the role of a storage engine (or storage manager)

Translates query processor instructions into low-level commands that access data on storage media.

49
New cards

What is a table in a database

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

50
New cards

What is a column in a table

A name and a data type for each piece of data stored in a row.

51
New cards

What is a row in a table

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

52
New cards

What is the synonym for a table

file, or relation, Table, file, and relation are synonyms for the same concept in a database.

53
New cards

What are the synonyms for a row

record, or tuple, Row, record, and tuple are synonyms for the same concept in a database.

54
New cards

What are the synonyms for a column

field, or attribute, Column, field, and attribute are synonyms for the same concept in a database.

55
New cards

What is the purpose of the SQL CREATE TABLE statement

It creates a new table by specifying the table name, column names, and column data types.

56
New cards

What is the purpose of the SQL DROP TABLE statement

It deletes a table along with all of its rows from a database.

57
New cards

What does the SQL ALTER TABLE statement do

It adds, deletes, or modifies columns in an existing table.

58
New cards

What is an example of an integer data type

INT represents positive and negative integers, implemented as 4 bytes of storage.

59
New cards

What is the range for a TINYINT data type

A signed range from -128 to 127 and an unsigned range from 0 to 255.

60
New cards

What is the range for a SMALLINT data type

A signed range from -32,768 to 32,767 and an unsigned range from 0 to 65,535.

61
New cards

What does the arithmetic operator + do

Adds two numeric values.

62
New cards

What does the arithmetic operator * do

Multiplies two numeric values.

63
New cards

What does the comparison operator = do

Compares two values for equality.

64
New cards

What does the comparison operator != do

Compares two values for inequality.

65
New cards

What does the SQL UPDATE statement do

Modifies existing rows in a table using the SET clause.

66
New cards

What does the SQL DELETE statement do

Deletes existing rows in a table, with an optional WHERE clause to specify which rows.

67
New cards

What does the SQL TRUNCATE statement do

Deletes all rows from a table but preserves the table structure.

68
New cards

What is a primary key

A column or group of columns used to uniquely identify a row in a table.

69
New cards

What is a foreign key

A column or group of columns that refer to the primary key of another table.

70
New cards

What does the FOREIGN KEY constraint do

It ensures that relationships between tables are maintained by rejecting insert, update, or delete operations that violate referential integrity.

71
New cards

What does the CASCADE action do in foreign key constraints

Propagates changes in the primary key to foreign keys.

72
New cards

What is the BETWEEN operator used for

Determines if a value is between two other values.

73
New cards

What does the LIKE operator do

Matches text against a pattern using wildcard characters % and _.

74
New cards

What does the SQL HAVING clause do

Filters group results in combination with the GROUP BY clause.

75
New cards

What is an INNER JOIN

A join that selects only matching rows from both the left and right tables.

76
New cards

What is a LEFT JOIN

A join that selects all rows from the left table and matching rows from the right table.

77
New cards

What is a FULL JOIN

A join that selects all rows from both the left and right tables, regardless of matching.

78
New cards

What is a self-join

A join that connects a table to itself.

79
New cards

What is a cross-join

A join that combines all possible combinations of rows from two tables without comparing columns.

80
New cards

What is a database application

Software that helps business users interact with database systems.

81
New cards

What is the role of a database administrator

Responsible for securing the database system against unauthorized users, enforcing user access procedures, and ensuring database availability.

82
New cards

What is authorization in a database context

The process that allows individual users limited access to specific tables, columns, or rows of a database.

83
New cards

What is the role of the query processor

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

84
New cards

What does the storage manager do

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

85
New cards

What is the responsibility of the transaction manager

Ensures transactions are properly executed and restores the database to a consistent state in case of failure.

86
New cards

What does the SQL INSERT statement do

Inserts rows into a table.

87
New cards

What does the SQL UPDATE statement do

Modifies data in a table.

88
New cards

What does the SQL DELETE statement do

Deletes rows from a table.

89
New cards

What is the purpose of the SQL CREATE TABLE statement

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

90
New cards

What are some examples of SQL data types

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

91
New cards

What are the three phases of database design

Analysis, logical design, and physical design.

92
New cards

What happens in the analysis phase

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

93
New cards

What happens in the logical design phase

Implements database requirements in a specific database system, converting entities, relationships, and attributes into tables, keys, and columns.

94
New cards

What is the focus of the physical design phase

Adds indexes and specifies how tables are organized on storage media, affecting query speed but not results.

95
New cards

What is data independence

The principle that physical design never affects query results.

96
New cards

What is an API in the context of databases

An application programming interface that simplifies the use of SQL with a general-purpose language.

97
New cards

What is a tuple

An ordered collection of elements enclosed in parentheses.