LyndonOHRC
Programmer
I am using a JetSQL/ODBC connection.
This query works but I need another column that is conditional. The column I need is Sum(Amount) Where Instrument='ACH' as ACHSales. But I don't know how to integrate that into the query.
Thanks
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
This query works but I need another column that is conditional. The column I need is Sum(Amount) Where Instrument='ACH' as ACHSales. But I don't know how to integrate that into the query.
Code:
Select Format(TransactionDate,'yyyy/mm/dd') as mTransactionDate, Track, Sum(Amount) as TotalSales, Instrument
From Receipt
Group By Format(TransactionDate,'yyyy/mm/dd'), Track
Order By Format(TransactionDate,'yyyy/mm/dd') desc,Track
Lyndon
---People Remember about 10% of what you say ---They never forget how you made them feel. Covey