NogDog, sorry I missed your answer. THough it was the first I was only emailed on the 2nd two reponses. So I never even noticed your was there.
Well my browser reports that mySQL version does not support 'LIMIT & IN/ALL/ANY/SOME subquery'
Looks like you code will work. It grabs the last 7 dates recorded, then grabs the sum of all date 'IN' that sub-set, correct?
So I tried this 'patch'. It seems to be correct.
SELECT SUM(amount) AS net7d FROM data WHERE SDate >=
(SELECT DISTINCT SDate FROM data ORDER BY SDate DESC LIMIT 6,0)
Will I have any problems with this?
Thanks for your quick help.
RR