Viewing 2 posts - 1 through 2 (of 2 total)
Use a combination of datediff() and case functions. compare the date column with getdate()
ex.
select DATEDIFF ( year , '1980-9-3', getdate()), case when DATEDIFF ( year , '1980-9-3', getdate()) <=21 then...
September 3, 2004 at 2:21 pm
#521727
Wouldn't it be a charm if such thing is possible? So to answer your question: No, you can't enumerate values for specific columns...
April 15, 2004 at 3:50 pm
#503036