rixtertrader <[email protected]> wrote:
> Here is the SQL string I'm currently using that has this problem:
> 
> SELECT date(max(Date), 'weekday 5') as MaxDate, Date, Year, Month, Week,
> Max(High) as High, Min(Low) as Low, Week as WeekNum FROM [" & sTable & "]
> GROUP By Year, Week

Try

GROUP BY Year + (WeekNum=53), WeekNum  - (WeekNum=53)*52

This should effectively merge week 53 with week 1 of next year.
-- 
Igor Tandetnik

_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to