1/57
Vocabulary flashcards covering database joins, aggregate functions, grouping, DML operations, subqueries, views, and T-SQL programming constructs from Lessons 7 through 12.
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.
(n - 1) Join Rule
The database guideline stating that to combine n separate tables together in a query, a minimum of (n−1) join conditions are required.
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.
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.
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.
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.
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.
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.
Aggregate Functions
Built-in mathematical operations that perform a calculation on a set of column values to return a single summary value.
AVG Function
An aggregate operation that calculates the mathematical mean of all non-null values within a specified numeric column.
SUM Function
An aggregate operation that calculates the mathematical total of all non-null values across a numeric column.
MIN Function
An aggregate operation that evaluates a column to retrieve the lowest numerical value, the earliest datetime, or the first alphabetical string.
MAX Function
An aggregate operation that evaluates a column to retrieve the highest numerical value, the latest datetime, or the last alphabetical string.
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.
COUNT(expr)
A specific aggregate function format that evaluates an expression or column to return the count of non-null rows exclusively.
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.
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.
HAVING Clause
A filtering clause used with GROUP BY to restrict summary groups based on conditions involving aggregate function calculations.
INSERT Statement
A Data Manipulation Language command used to append one or more new row records into a specified database table.
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.
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.
Explicit Method (NULL Insertion)
An insertion technique where the keyword NULL is directly specified within the VALUES clause for columns accepting null values.
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.
UPDATE Statement
A Data Manipulation Language command used to change or overwrite existing column data within specified table rows.
DELETE Statement
A Data Manipulation Language command used to remove one or more existing row records completely from a target table.
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.
Noncorrelated Subquery
An independent nested query that executes once prior to the outer query and feeds its resulting dataset directly to the outer statement.
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.
Single-Row Subquery
An inner query that returns exactly one row or scalar value, requiring evaluation with standard comparison operators such as =, >, or <.
Single-Row Comparison Operators
Relational operators such as =, >, >= , <, <=, and <>, used to test expressions against a query returning a solitary scalar value.
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.
IN Operator
A multiple-row evaluation predicate that tests whether a given value matches any element within a specified list or subquery result set.
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.
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.
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.
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.
Nested Subqueries
A query structure where an inner query contains one or more additional subqueries placed within itself across multiple architectural layers.
View
A database object representing a virtual table defined dynamically by a saved SELECT query whose contents are compiled only when referenced.
CREATE VIEW Statement
A Data Definition Language command used to construct and save a named virtual table specification based on a defined SELECT query.
ALTER VIEW Statement
A Data Definition Language command used to modify the structural SELECT query definition of an existing virtual table without dropping it.
DROP VIEW Statement
A Data Definition Language command used to permanently delete an existing virtual table object definition from the database catalog.
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.
Batch
A collection of one or more Transact-SQL statements submitted simultaneously and executed as a single unit of work by SQL Server.
GO Command
A utility command recognized by SQL Server tools to signal the boundary and execution termination point of a Transact-SQL processing unit.
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.
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.
Local Variable
A user-declared temporary memory storage object prefixed by a single @ symbol, possessing batch-level scope and initialized to NULL.
Global Variable
A system-maintained internal tracking indicator prefixed by @@ that cannot be declared, altered, or directly assigned by database users.
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.
SET Statement
A Transact-SQL assignment command used to store a single known explicit value or calculated expression into an existing declared local variable.
PRINT Statement
A diagnostic Transact-SQL statement used for troubleshooting by returning literal text messages or variable character strings to the client console.
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.
BEGIN and END Keywords
Delimiting keywords used to enclose multiple Transact-SQL statements into a cohesive logical block for control-of-flow execution.
WHILE Statement
A control-of-flow construct that repeatedly executes an enclosed statement block as long as a designated boolean expression remains TRUE.
BREAK Statement
A control keyword that immediately forces an exit from the innermost iterative loop, redirecting program flow to statements following the loop block.
CONTINUE Statement
A control keyword that halts the current iteration of a loop and restarts execution from the beginning condition, bypassing remaining loop statements.
Simple CASE
A conditional function that compares a single base input expression against a list of static values to determine a matching output.
Searched CASE
A conditional function that evaluates a sequence of independent boolean conditions in order to determine and return a corresponding result.