Difficulty: Easy
Correct Answer: Correct
Explanation:
Introduction / Context:
Each major RDBMS adds extensions to the SQL standard. Microsoft SQL Server’s dialect is Transact-SQL (T-SQL), used across on-premises SQL Server, Azure SQL Database, and Azure SQL Managed Instance with minor differences by version.
Given Data / Assumptions:
Concept / Approach:
T-SQL extends the SQL standard with procedural programming (BEGIN…END, variables, control flow), error handling (TRY…CATCH), system functions, windowing enhancements, and engine-specific features (e.g., OUTPUT clause, MERGE behavior specifics). Understanding T-SQL is core to development and administration in SQL Server.
Step-by-Step Solution:
Write DDL: CREATE TABLE, CREATE INDEX;Write DML: SELECT/INSERT/UPDATE/DELETE enriched with T-SQL features (TOP, OUTPUT);Use procedural logic: DECLARE @i int; WHILE; TRY…CATCH;Invoke built-ins: e.g., STRING_SPLIT, JSON_VALUE (version-dependent).
Verification / Alternative check:
Official documentation and SSMS templates use T-SQL syntax and terminology consistently.
Why Other Options Are Wrong:
Azure SQL and on-prem both use T-SQL. DDL/DML division does not change the dialect. T-SQL is not deprecated.
Common Pitfalls:
Assuming portability of T-SQL code to other vendors without changes; relying on non-portable features.
Final Answer:
Correct
Discussion & Comments