SELECT
DATEADD(minute,(DATEDIFF(minute,DayStart,[DateTime])/5)*5,DayStart) AS
FiveMinutes, Val
FROM (SELECT *,
DATEADD(day,DATEDIFF(day,0,[DateTime]),0) as DayStart
FROM table1) as A
I would like to Show Val using AVG Function ...
pls help me
Shwe Nann Thu