60 likes | 197 Views
5 SQL TIPS you may not know. Minette Steynberg Minettes@Pkey.co.za. Primary Key Consulting. Logical condition USING IIF. Introduced in SQL Server 2012 IIF ( boolean_expression , true_value , false_value ). http://msdn.microsoft.com/en-us/library/hh213574.aspx.
E N D
5 SQL TIPS you may not know Minette Steynberg Minettes@Pkey.co.za Primary Key Consulting
Logical condition USING IIF • Introduced in SQL Server 2012 • IIF ( boolean_expression, true_value, false_value ) http://msdn.microsoft.com/en-us/library/hh213574.aspx
Concatenation USING CONCAT • Introduced in SQL Server 2012 • CONCAT ( string_value1, string_value2 [, string_valueN ] ) http://msdn.microsoft.com/en-us/library/hh231515.aspx
Compound operators • Introduced in SQL Server 2008 • expression operator expression http://msdn.microsoft.com/en-us/library/cc645922.aspx
Table value constructor • Introduced in SQL Server 2008 Batch Replicator http://msdn.microsoft.com/en-us/library/dd776382.aspx
Template Explorer http://msdn.microsoft.com/en-us/library/ms174169.aspx