"Why not just calculate it when you need it?"Yes MVJ is right. And you might not required the 2nd table at alldeclare @table table( dob datetime)insert into @tableselect '19910407' union allselect '19851231' union allselect '19600826'select [13 - 24] = count(case when age between 13 and 24 then 1 end), [25 - 44] = count(case when age between 25 and 44 then 1 end), [45 - 60] = count(case when age between 45 and 60 then 1 end)from( select age = dbo.F_AGE_IN_YEARS(dob, getdate()) from @table) a
KH