Database Administration: Lessons 7–12

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/57

flashcard set

Earn XP

Description and Tags

Vocabulary flashcards covering database joins, aggregate functions, grouping, DML operations, subqueries, views, and T-SQL programming constructs from Lessons 7 through 12.

58 Terms

1
New cards

Join

A database operation that merges rows from one data set with rows from another according to common values in corresponding columns, producing rows containing columns from both tables.

2
New cards

(n - 1) Join Rule

The database guideline stating that to combine nn separate tables together in a query, a minimum of (n−1)(n - 1) join conditions are required.

3
New cards

Inner Join

A join type (also known as an equijoin) that returns only the rows contained within the intersection of two data sources where matching values exist in the join columns.

4
New cards

Left Outer Join

A query operation that returns all rows from the first named table in the ON condition and only matching rows from the right table, populating NULL for non-matching right-side columns.

5
New cards

Right Outer Join

A query operation that returns all rows from the second named table in the ON condition and only matching rows from the left table, displaying NULL for non-matching left-side columns.

6
New cards

Full Outer Join

A query operation that returns all rows from both participating tables, substituting NULL values across column fields whenever the join condition is not satisfied.

7
New cards

Self Join

An operation in which a table is joined with itself to model a unary relationship, commonly when a table contains a foreign key referencing its own primary key.

8
New cards

Table Alias

An alternate shorthand name assigned to a table in the FROM clause that simplifies query readability, reduces SQL memory footprint, and qualifies column names.

9
New cards

Aggregate Functions

Built-in mathematical operations that perform a calculation on a set of column values to return a single summary value.

10
New cards

AVG Function

An aggregate operation that calculates the mathematical mean of all non-null values within a specified numeric column.

11
New cards

SUM Function

An aggregate operation that calculates the mathematical total of all non-null values across a numeric column.

12
New cards

MIN Function

An aggregate operation that evaluates a column to retrieve the lowest numerical value, the earliest datetime, or the first alphabetical string.

13
New cards

MAX Function

An aggregate operation that evaluates a column to retrieve the highest numerical value, the latest datetime, or the last alphabetical string.

14
New cards

COUNT(*)

A specific aggregate function format that calculates the total number of rows in a table, including duplicate rows and rows that contain NULL values.

15
New cards

COUNT(expr)

A specific aggregate function format that evaluates an expression or column to return the count of non-null rows exclusively.

16
New cards

ISNULL Function

A built-in scalar function that replaces any NULL found in a column with a specified replacement value, forcing aggregate calculations to include otherwise omitted records.

17
New cards

GROUP BY Clause

A SQL clause used alongside SELECT statements to divide result rows into distinct summary partitions based on identical values in specified columns.

18
New cards

HAVING Clause

A filtering clause used with GROUP BY to restrict summary groups based on conditions involving aggregate function calculations.

19
New cards

INSERT Statement

A Data Manipulation Language command used to append one or more new row records into a specified database table.

20
New cards

Identity Column

A table column configured to automatically generate sequential numeric values by the database engine whenever a new row is created, typically requiring no explicit value during insertion.

21
New cards

Implicit Method (NULL Insertion)

An insertion technique where columns permitting null values are omitted entirely from the column list, prompting the database to automatically store NULL.

22
New cards

Explicit Method (NULL Insertion)

An insertion technique where the keyword NULL is directly specified within the VALUES clause for columns accepting null values.

23
New cards

INSERT … SELECT Statement

A compound SQL operation that extracts multiple rows from one or more existing tables and inserts them directly into a target table in a single step.

24
New cards

UPDATE Statement

A Data Manipulation Language command used to change or overwrite existing column data within specified table rows.

25
New cards

DELETE Statement

A Data Manipulation Language command used to remove one or more existing row records completely from a target table.

26
New cards

Subquery

A nested SELECT statement embedded inside the WHERE, HAVING, or FROM clause of an outer SQL query that provides dynamic values or intermediate sets.

27
New cards

Noncorrelated Subquery

An independent nested query that executes once prior to the outer query and feeds its resulting dataset directly to the outer statement.

28
New cards

Correlated Subquery

A nested query that references columns from the outer query, requiring it to execute repeatedly for each row evaluated by the outer statement.

29
New cards

Single-Row Subquery

An inner query that returns exactly one row or scalar value, requiring evaluation with standard comparison operators such as ==, >>, or <<.

30
New cards

Single-Row Comparison Operators

Relational operators such as ==, >>, >=>= , <<, <=<=, and <><>, used to test expressions against a query returning a solitary scalar value.

31
New cards

Multiple-Row Subquery

An inner query that produces more than one row of values, requiring multi-value evaluation operators such as IN, ANY, or ALL.

32
New cards

IN Operator

A multiple-row evaluation predicate that tests whether a given value matches any element within a specified list or subquery result set.

33
New cards

ANY Operator

A multiple-row comparison operator that evaluates whether a condition holds true for at least one value in a subquery, where less-than comparison matches values below the maximum and greater-than matches values above the minimum.

34
New cards

ALL Operator

A multiple-row comparison operator that evaluates whether a condition holds true for every value returned by a subquery, where less-than comparison matches values below the minimum and greater-than matches values above the maximum.

35
New cards

Derived Table

A subquery placed directly in the FROM or JOIN clause, assigned a mandatory table alias, and treated as a temporary virtual table during query execution.

36
New cards

EXISTS Operator

A boolean operator that tests for the presence of rows in a subquery, evaluating to TRUE if at least one record is returned and FALSE if none are returned.

37
New cards

Nested Subqueries

A query structure where an inner query contains one or more additional subqueries placed within itself across multiple architectural layers.

38
New cards

View

A database object representing a virtual table defined dynamically by a saved SELECT query whose contents are compiled only when referenced.

39
New cards

CREATE VIEW Statement

A Data Definition Language command used to construct and save a named virtual table specification based on a defined SELECT query.

40
New cards

ALTER VIEW Statement

A Data Definition Language command used to modify the structural SELECT query definition of an existing virtual table without dropping it.

41
New cards

DROP VIEW Statement

A Data Definition Language command used to permanently delete an existing virtual table object definition from the database catalog.

42
New cards

Transact-SQL (T-SQL)

A proprietary procedural programming extension for Microsoft SQL Server used to administer the system, create database objects, and manage data structures.

43
New cards

Batch

A collection of one or more Transact-SQL statements submitted simultaneously and executed as a single unit of work by SQL Server.

44
New cards

GO Command

A utility command recognized by SQL Server tools to signal the boundary and execution termination point of a Transact-SQL processing unit.

45
New cards

Single-Line Comment

A code documentation notation introduced by two consecutive dashes (--) that causes the database parser to ignore all remaining text on that specific line.

46
New cards

Multi-Line Comment

A code documentation block delimited by /* and */ that instructs the database parser to ignore all enclosed text across one or multiple lines.

47
New cards

Local Variable

A user-declared temporary memory storage object prefixed by a single @ symbol, possessing batch-level scope and initialized to NULL.

48
New cards

Global Variable

A system-maintained internal tracking indicator prefixed by @@ that cannot be declared, altered, or directly assigned by database users.

49
New cards

DECLARE Statement

A Transact-SQL keyword used to allocate memory for one or more user variables by specifying their identifiers, data types, and optional initial values.

50
New cards

SET Statement

A Transact-SQL assignment command used to store a single known explicit value or calculated expression into an existing declared local variable.

51
New cards

PRINT Statement

A diagnostic Transact-SQL statement used for troubleshooting by returning literal text messages or variable character strings to the client console.

52
New cards

IF…ELSE Statement

A conditional control-of-flow structure that executes a specific statement or block when a boolean condition evaluates to TRUE and an alternate block when FALSE.

53
New cards

BEGIN and END Keywords

Delimiting keywords used to enclose multiple Transact-SQL statements into a cohesive logical block for control-of-flow execution.

54
New cards

WHILE Statement

A control-of-flow construct that repeatedly executes an enclosed statement block as long as a designated boolean expression remains TRUE.

55
New cards

BREAK Statement

A control keyword that immediately forces an exit from the innermost iterative loop, redirecting program flow to statements following the loop block.

56
New cards

CONTINUE Statement

A control keyword that halts the current iteration of a loop and restarts execution from the beginning condition, bypassing remaining loop statements.

57
New cards

Simple CASE

A conditional function that compares a single base input expression against a list of static values to determine a matching output.

58
New cards

Searched CASE

A conditional function that evaluates a sequence of independent boolean conditions in order to determine and return a corresponding result.