Database Programming
Everything on SkillVeris tagged Database Programming — collected across the glossary, study notes, blog, and cheat sheets.
9 resources across 1 library
Interview Questions(9)
What is a Stored Procedure in SQL?
A stored procedure is a precompiled, named block of SQL statements saved inside the database that can be executed repeatedly with a single call, optionally acc…
What is a Common Table Expression (CTE) in SQL?
A Common Table Expression, or CTE, is a named, temporary result set defined with a WITH clause that exists only for the duration of the single statement that r…
What is a Recursive CTE and When Would You Use One?
A recursive CTE is a Common Table Expression that references itself, repeatedly building on its own previous output until no new rows are produced, making it t…
CTE vs Subquery: Which Performs Better?
Neither a CTE nor a subquery is inherently faster; on most modern optimizers, including PostgreSQL 12+ and SQL Server, a non-recursive CTE is inlined into the…
CTE vs Temporary Table: What is the Difference?
A CTE is a named result set scoped to a single statement with no storage or indexing of its own, while a temporary table is a real, physically stored table tha…
What Does It Mean for a CTE to be Materialized?
A materialized CTE is one the database engine fully computes and holds in a temporary work area exactly once, before the outer query runs against it, as oppose…
How Do Prepared Statements Improve Database Performance?
A prepared statement is parsed, validated, and compiled into an execution plan once, and then executed repeatedly with different parameter values, so the datab…
What Are Parameterized Queries and Why Do They Matter?
A parameterized query is a SQL statement written with placeholders in place of literal values, where the actual values are supplied separately and bound by the…
Stored Procedures vs ORM: What Are the Trade-offs?
Stored procedures push logic and multi-statement operations into the database itself for performance and centralized control, while an ORM keeps logic in appli…