• I put this as two as I thought it was slightly more interesting, and required more thought, than lots of the T-SQL ones we have.