I have a table with this columns:
tblTransaction
(
Transaction_ID,
Transaction_RequestTransactionCode,
Transaction_MobileErrorCode
)
I want to have the count of EVERY transactions, that it's MobileErrorCode is 0.
so my query is like this:
SELECT Transaction_RequestTransactionCode, COUNT(Transaction_ID) AS _Count
FROM tblTransaction
WHERE (Transaction_MobileErrorCode = '0')
GROUP BY Transaction_RequestTransactionCode
the result is this:
It dosent have any error, but its not my result. when one transaction code dose have the condition (Transaction_MobileErrorCode = '0'), it dosent appear in result with _Count = 0.
I mean this result, with last raw: