declare aVal int, bVal int;
select min(d.DateValue) begindate, max(d.DateValue) enddate from dbo.dimDate d
where d.BusinessYear = 2014
what I want to do is to save the result of the select statement in aVal and bVal
so aVal=begindate and bVal=enddate