Tally Ho 7. November 2013 sellout SQL (0) CREATE FUNCTION [dbo].[ufn_TallyHo] (@quantity int) RETURNS TABLE AS RETURN( with cte(tally)as(select 1 union all select tally + 1 from cte where tally < @quantity)SELECT tally FROM cte ) I found a table at work called Tally that was a list of numbers. I thought it was sad until I needed ... [More]