1/23
Vocabulary practice flashcards covering fundamental SQL concepts from the term exam review quiz, including CASE expressions, stored procedure management, grouping, filtering logic, data types, and joins.
WHERE Clause (vs. HAVING)
A SQL clause that filters individual rows before grouping and aggregation occur in a query.
HAVING Clause
A SQL clause used in queries with a GROUP BY clause to filter groups after aggregation has been performed.
CASE Expression
A SQL conditional expression that introduces if-then-else logic directly inside a SELECT statement or query.
END Keyword
The required SQL keyword used to terminate and close a CASE expression.
ELSE Clause (in CASE)
An optional clause in a CASE expression that specifies the fallback result for rows that do not satisfy any of the WHEN conditions.
WHEN Keyword
The SQL keyword used to introduce a conditional evaluation inside a CASE expression.
CREATE PROCEDURE
The SQL data definition statement used to define and create a new stored procedure in a database.
CALL Statement
The SQL command used in MySQL to invoke and execute a stored procedure.
IN Parameter Mode
A parameter mode in stored procedures that accepts an input value passed into the procedure from the caller.
DROP PROCEDURE
The SQL statement used to delete and remove an existing stored procedure from the database.
Stored Procedure
A saved collection of SQL code stored inside the database that can be reused and executed repeatedly.
DELIMITER Statement
A MySQL command that temporarily redefines the statement terminator (for example, to $$) so internal semicolons in a procedure body do not end the definition prematurely.
PRIMARY KEY
A column constraint (such as member_id INT PRIMARY KEY) that uniquely identifies each individual record in a database table.
DATE Data Type
The SQL data type designed to store calendar dates without times, commonly used for attributes such as a publication date.
VARCHAR Data Type
A variable-length character data type specified with a maximum character length, such as VARCHAR(60) for text up to 60 characters.
BETWEEN … AND Operator
A SQL comparison operator used to filter rows within an inclusive range between two specified boundary values.
LIKE Operator
A SQL pattern-matching operator that uses wildcard characters, such as 'M%' to match any string starting with the letter M.
Logical Operator Precedence (AND vs. OR)
The rule in SQL where the AND operator is evaluated before the OR operator, requiring parentheses around OR conditions when combined with AND.
ORDER BY … DESC
A SQL sorting clause that arranges query output in descending order, placing the highest or most expensive values at the top.
GROUP BY Clause
A SQL clause that aggregates rows sharing identical values in specified columns into summary rows for aggregate functions like COUNT().
INNER JOIN
A relational join operation that returns only the rows that have matching key values in both tables being joined.
LEFT JOIN
An outer join that returns all records from the left table, along with matched records from the right table, filling with NULL when no match exists.
INT Data Type Limitation
A characteristic of the integer type whereby storing non-integer values (such as prices like 249.50) results in the truncation or loss of the decimal portion.
UNION Operator
A set operator that combines the output sets of two SELECT queries into a single list while automatically removing duplicate rows.