Microsoft® SQL Server 2008 R2 Unleashed
by Ray Rankins, Paul Bertucci, Chris Gallelli, Alex T. Silverstein
New Transact-SQL Constructs
What would a new SQL Server release be without new T-SQL commands and constructs to further expand the power and capabilities of the T-SQL language? SQL Server 2008 is no exception (although SQL Server 2008 R2 is an exception because no new T-SQL constructs are introduced in R2). The new constructs provided in SQL Server 2008 include
• Compound operators—New operators that provide a shorthand method of performing an operation and assigning a value to a local variable (for example, +=, *=).
• GROUPING SETS—New operator added to the GROUP BY clause to perform multiple grouping operations in a single query.
• MERGE statement—New DML statement that can perform INSERT, UPDATE, or DELETE operations on a target table based ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access