Given two timestamps, how would you find the datetime of the start (i.e. midnight) of each Sunday within this interval? I'm not sure yet if I want this as a query or a simple loop in a procedure - it would be interesting to see both actually. Side question - can anyone give a good link to a page on datetimes? For stuff like using system functions, datetime arithmetic and so on.