Prove partition elimination with the actual plan, test date predicates, and use $PARTITION to check which slice SQL Server targets.
How to Assign Multiple Variables in a Single T-SQL Query? – Interview Question of the Week #148
How do you assign Multiple Variables in a single T-SQL query? Here are three ways, from separate SET statements to my preferred one-line style.






