Hello All,
Not sure if this sits in an SQL forum or not but in case I
have to CFM the problem, also not looking for the detailed solution
here just a pointer to which route to go down.
Im grabing data from my SQL server using a query like the one
below.
********************************************************
SELECT DATEPART(yy, pmastdate) AS shed_year, DATEPART(ww,
pmastdate) AS shed_week, SUM (pmastqty) AS pmastqty
FROM table
GROUP BY pmastpart, pmastref, DATEPART(yy, pmastdate),
DATEPART(ww, pmastdate), pmastsale
********************************************************
The SQL server returns data grouped in weeks and it regards a
week as Sun - Sat,
Now I need the data to be grouped in weeks but using Mon -
Sun not what the SQL server returns.
So my question is:
Will I need to be grabbing the data set ungrouped and write
some CFM to group it in Mon - Sun weeks,
or is there a setting or dirrerent SQL on the SQL server
(microsoft 2000) that will change what it regards a week
group to be? (been googleing lots for the SQL server side etc
with no luck yet)
As I said before not after solutions here unless someone has
done this and does not mind, just an opinion to which the best
route would be SQL or CFM
Kind Regards Guy