- CTE
- Common Table Expression — a named temporary result set defined with the WITH keyword before a SELECT, INSERT, UPDATE, or DELETE statement. CTEs improve readability by naming subqueries.
- Window function
- A SQL function that operates over a set of rows related to the current row, defined with the OVER clause. Examples include RANK(), ROW_NUMBER(), and LAG(). They do not collapse rows like aggregate functions.
- Subquery
- A SELECT statement nested inside another SQL statement. Subqueries can appear in the FROM clause as a derived table, in the WHERE clause as a condition, or in the SELECT list as a scalar subquery.
- Dialect
- A vendor-specific variant of SQL with proprietary extensions and syntax differences. Major dialects include MySQL, PostgreSQL, SQL Server (T-SQL), Oracle, and SQLite.
- EXPLAIN
- A SQL command prefix that shows the query execution plan without running the query, used to diagnose slow query performance. PostgreSQL's EXPLAIN ANALYZE also executes the query and reports actual timings.
- DDL
- Data Definition Language — SQL statements that define database structure: CREATE TABLE, ALTER TABLE, DROP TABLE, CREATE INDEX. DDL is formatted alongside DML (SELECT, INSERT, UPDATE, DELETE).