I have a select statement:
SELECT number, SUM(paid1) AS dar_total
FROM dbo.payhistory
WHERE (batchtype = 'DAR')
GROUP BY number
What my new spec requires that I excluded any paid1 < .02 prior to including it in the 'sum' of them all.
All help greatly appreciated and many thanks in advance!
SELECT number, SUM(paid1) AS dar_total
FROM dbo.payhistory
WHERE (batchtype = 'DAR')
GROUP BY number
What my new spec requires that I excluded any paid1 < .02 prior to including it in the 'sum' of them all.
All help greatly appreciated and many thanks in advance!