Events -

DATABASES

Conditional Aggregates

(Matt Bowler) The Problem: A legacy table contains amounts and a char column indicating whether the amount is a credit or a debit. We want an aggregate (over a given range) of the amounts. We need to add the credits and subtract the debits.