Question : getting the some of the same date.

SELECT Sum(Volume)
FROM T_
WHERE [DateTime]='2000-01-01'

the above code show only data from 2000-1-1 12:00:00
I want to get the total sum of the same date but not same time...

Can someone share ideas.

Answer : getting the some of the same date.

this should do:
1:
2:
3:
4:
SELECT Sum(Volume)
FROM T_
WHERE [DateTime]>='2000-01-01'
  AND [DateTime]<dateadd(day, 1, '2000-01-01')
Random Solutions  
 
programming4us programming4us