• Hi Jeff Thanks for your response and great article. But i have a concern that you are using custom year next to the declaration.

    SELECT @fromYear='1913-01-01', @toYear='1998-01-01'

    I don't want this to be hard coded. because the range applied on the formula may change some point of time, The current formula

    set @start = year(getdate()) - 15

    set @Upto = year(getdate()) - 100

    Here 15, 100 may get changed in near future. so i don't want this to be card coded. is there any way to avoid this to be hard coded.