Hi pgtip,
I tried the following code in MSQuery:
SELECT `<Table name>`.<Code>, Sum(`<Table name>`.<Weight>) AS 'Whole sum', SUM(CASE WHEN `<Table name>`.<Date(M.D)> >={ts '2004-03-01 00:00:00'} THEN `<Table name>`.<Weight> ELSE 0 END) AS 'Sum just in March'
FROM `\\<pathname>\<filename>`.`<Table name>` `<Table name>`
WHERE (`<Table name>`.<Date(M.D)> >={ts '2004-01-01 00:00:00'})
GROUP BY `<Table name>`.<Code>
But it won't work.
What can be the problem?
pontitt