Hello.
I've been hitting my head all day with this and maybe anyone can help me.
I have this piece of code on a view:
Select HA_Id, HA_Seg_Id, HA_Data
from dbo.Hist_Analysis
where (HA_Data BETWEEN CONVERT(DATETIME,'2001-01-01 00:00:00', 102) AND CONVERT(DATETIME,'2009-01-01 00:00:00', 102)...