Updated T-SQL sample