Surrogate keys keep warehouse history stable while natural keys preserve source identity; learn lookup, uniqueness, and change handling.
Moving Averages in T-SQL
Moving averages in T-SQL use ROWS BETWEEN for rolling windows, but date gaps and duplicate dates decide what the result actually means.
SQL SERVER – Denali – String Function – FORMAT() – A Quick Introduction
A quick introduction to the FORMAT function in SQL Server Denali: locale-aware formatting of dates and numbers, built on the .NET Framework and CLR.
SQL SERVER 2012 – String Function CONCAT() – A Quick Introduction
SQL Server 2012 adds the String Function CONCAT(), which joins two or more values into one string. Examples show how it handles numbers, dates and NULLs.
SQLAuthority News – Uncut and Unedited – Interview of Pinal Dave on Book Authoring
I was very happy when books were published and I got a print copy in my hand. In this blog post we will discuss about Book Authoring.
Lookups in a Data Load: Cached, Uncached and Wrong
Review lookup data load behavior for cache freshness, comparison rules, duplicate reference keys, and unmatched rows before trusting the output.
SQL SERVER – Denali – New Functions and Shorthand for CASE Statement
Do the new Denali functions replace the CASE statement? No. They are shorthand for CASE statement logic, and TRY_PARSE works well with CASE.
XML Namespaces: Match the Namespace URI, Not Just the Tag
XML Namespaces are part of element identity, so a matching tag name alone can still miss a node. I compare three paths against one document. The namespace URI stays the same while the query binding changes.
SQL SERVER – DBA Quiz 2011 – All was well few moments before all went wrong – Reasons and Resolutions
My question in DBA Quiz 2011 comes from a real incident: a query that always worked fine suddenly did not. Share your reasons and resolutions.
SQL SERVER 2012 – Logical Function CHOOSE() – A Quick Introduction
A quick introduction to the logical function CHOOSE() in SQL Server 2012: it returns the value at a given index from a list, or NULL when out of range.










