SQL Server B-TreeWhen you think of B-trees, think “clustered index”. All indexes in SQL Server on disk-based tables are structured […] April 1, 2018 in SQL Server tagged sql / storage / internal / SQL Server Data Structures by Mike
SQL Server Pages and ExtentsThe page is the fundamental unit of data storage in SQL Server. An extent is a collection of […] April 1, 2018 in SQL Server tagged sql / internal / extents / database / pages / SQL Server Data Structures by Mike
SQL Server Internal Data StructuresAs opposed to the logical query processing discussed in the post SQL Server Logical Query, we are now […] April 1, 2018 in SQL Server tagged data structures / query tuning / SQL Server Data Structures by Mike
SQL Server Top N per GroupThe top n per group is a classic task in SQL. One example of this task is “give […] March 31, 2018 in SQL Server tagged top / poc index / density by Mike
SQL Server Top N per group row_number Single TableThis post provides a solution to the classic top n per group task where you have a single […] March 31, 2018 in SQL Server tagged raptors / top / over / row_number / window by Mike
SQL Server Cross Apply General Form“The APPLY operator is one of the most powerful tools I know of in T-SQL, and yet it […] March 30, 2018 in SQL Server tagged apply / cross by Mike
SQL Server Inline Table-Valued Functions (TVF)Suppose you need a reusable table expression like a view, but you also need to be able to […] March 30, 2018 in SQL Server tagged tvf by Mike
SQL Server Multi-Join QueriesMulti-Join Queries So far we have just joined two tables together. Now we will work with four tables, […] March 30, 2018 in SQL Server tagged join / multi / SQL Joins by Mike
SQL Server SubqueriesSubqueries allow you to nest queries. One query operates on the results of another query. Another way to […] March 28, 2018 in SQL Server tagged subqueries / SQL Server Subqueries by Mike
SQL Server Aggregate Window Functions RaptorsThis post is another example of aggregate window functions. This time we are going to use some Toronto […] March 25, 2018 in SQL Server tagged window / raptors / running / aggregate / function / total / SQL Server Window Functions by Mike
SQL Server Derived TablesA derived table closely resembles a subquery. It is a table subquery that is defined in the FROM […] March 18, 2018 in SQL Server tagged tables / derived / expressions by Mike
SQL Server Self-JoinA self-join is a join between multiple instances of the same table. With self-joins it is mandatory to […] March 13, 2018 in SQL Server tagged self-join by Mike