Remove sql-server-inline-table-valued-function
article thumbnail

Fundamentals of Table Expressions, Part 12 – Inline Table-Valued Functions

SQL Performance

This article is the twelfth part in a series about named table expressions. So far I covered derived tables and CTEs , which are statement-scoped named table expressions, and views , which are reusable named table expressions. What Is an Inline Table-Valued Function? RETURNS TABLE.

Cache 144
article thumbnail

Fundamentals of Table Expressions, Part 13 – Inline Table-Valued Functions, Continued

SQL Performance

This is the thirteenth and last installment in a series about table expressions. This month I continue the discussion I started last month about inline table-valued functions (iTVFs). Last month I explained when SQL Server inlines iTVFs, it applies parameter embedding optimization by default.

Cache 121
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Trending Sources

article thumbnail

Fundamentals of table expressions, Part 1

SQL Performance

This article is the first in a series about the fundamentals of table expressions in T-SQL. I will mainly focus on four types of named table expressions, which are known in T-SQL as derived tables, common table expressions (CTEs), views, and inline table-valued functions (inline TVFs).

C++ 143
article thumbnail

T-SQL Windowing Improvements in SQL Server 2022

SQL Performance

Microsoft recently released the first public preview of SQL Server 2022. This release has a number of T-SQL improvements. The WINDOW clause is part of the ISO/IEC SQL standard. This clause is now available in Azure SQL Database and SQL Server 2022, provided you use database compatibility level 160 or higher.

Servers 145
article thumbnail

Fundamentals of table expressions, Part 2 – Derived tables, logical considerations

SQL Performance

Last month I provided a background to table expressions in T-SQL. I explained the context from relational theory and the SQL standard. I explained how a table in SQL is an attempt to represent a relation from relational theory. Window functions can appear only in a query's SELECT and ORDER BY clauses.

C++ 143
article thumbnail

Number series generator challenge solutions – Part 2

SQL Performance

Last month I covered solutions that generate the rows on the fly using a table value constructor with rows based on constants. This month I focus on solutions that query a physical base table that you pre-populate with rows. Here’s the code to create the dummy table: DROP TABLE IF EXISTS dbo. CREATE TABLE dbo.

C++ 124
article thumbnail

Fundamentals of table expressions, Part 3 – Derived tables, optimization considerations

SQL Performance

In Part 1 and Part 2 of this series, I covered the logical, or conceptual, aspects of named table expressions in general, and derived tables specifically. This month and the next I’m going to cover the physical processing aspects of derived tables. Does it get persisted on disk, and how does SQL Server handle memory for it?

C++ 109