Hi
I need to make 2 querys which give me todays totals and also a Weeks totals
Both will be separate. My date field is a datetime format. I have tried many ways and currently my query looks like this
select sum(TotalSellPrice), sum(TotalCostPrice), sum(TotalVolume), DateTimeCreated DEFAULT GETDATE() from OrderHeader
where OrderStatus <> 0 AND OrderStatus <> 1 AND OrderStatus <>2
It does not recognise the Default. Any ideas please on this query and also how I can get it to look at the current week using another query.
Thanks
I need to make 2 querys which give me todays totals and also a Weeks totals
Both will be separate. My date field is a datetime format. I have tried many ways and currently my query looks like this
select sum(TotalSellPrice), sum(TotalCostPrice), sum(TotalVolume), DateTimeCreated DEFAULT GETDATE() from OrderHeader
where OrderStatus <> 0 AND OrderStatus <> 1 AND OrderStatus <>2
It does not recognise the Default. Any ideas please on this query and also how I can get it to look at the current week using another query.
Thanks