Our free SDU Tools for developers and DBAs, now includes a very large number of tools, with procedures, functions, and views. A while back, we added […]
The most common form of join between two tables is what’s called an inner join. In the example shown above, I’ve selected some columns from different […]
The simplest way to join two tables is what’s called a cross-join. So this is where I say from products, cross-join, sales territories. SELECT * FROM […]
In general, we try to avoid procedural logic when writing T-SQL. However, it is possible. The most basic procedural statement is the IF statement. It allows […]
As well as the variables that you declare, SQL Server has a number of built-in system variables and some built-in system functions. The system variables are […]