Technical requirements
The examples that will be used in this chapter are designed for use on SQL Server 2022 and Azure SQL Database, but they should work on any version of SQL Server, 2012 or later. The Developer Edition of SQL Server is free for development environments and can be used to run all the code samples. There is also a free tier of Azure SQL Database you can use for testing at https://aka.ms/freedb.
You will need the sample AdventureWorks2016_EXT
database (referred to as AdventureWorks
), which can be found on GitHub at https://github.com/Microsoft/sql-server-samples/releases/tag/adventureworks.
The code samples for this chapter can also be found on GitHub at https://github.com/PacktPublishing/Learn-T-SQL-Querying-Second-Edition/tree/main/ch2.