I have an SQL query that groups by transaction type and then sums amount, but would like the summed amount to be in a column for each transaction type
i have this:
select Job,
sum(amount) as Amount,
transaction_type
from JCT_CURRENT__TRANSACTION
WHERE transaction_date >= {?Start Date}
and transaction_date <= {?End Date}
GROUP BY Job, transaction_type
ORDER BY Job ASC
But would like:
Job | TransType1AmountSum | TransType2AmountSum | TransType3AmountSum
so i would only have one line per job.