I have a DynamoDB with items as follows
ID TotalCount SuccessCount FailedCount
1 10 5 5
1 5 3 2
1 5 2 3
Using DynamoDB AWS Java SDK (e.g using DynamoDBQueryExpression or DynamoDBScanExpression or any other DynamoDB API), how can I get count of TotalCount, SuccessCount and FailedCount for ID = 1.
Equivalent SQL like query will be as follows.
SELECT COUNT(TotalCount), COUNT(SuccessCount), COUNT(FailedCount)
FROM TABLE
WHERE ID = 1;
Any help will be appreciated.