SyntaxFix
Write A Post
Hire A Developer
Questions
How about this?
SUM(IF(PaymentType = "credit card", totalamount, 0)) AS CreditCardTotal