Actual query :-
SELECT *,COUNT(case when ZISREAD = 0 then ZISREAD end) FROM ZNOTIFICATION WHERE ZTTL>1411025900 group by zkind,zaction,zname
Hi, i need to convert the Count condition COUNT(case when ZISREAD = 0 then ZISREAD end)
using core data NSExpression
NSExpression *countPathExpression = [NSExpression expressionForKeyPath: @"isRead"];
NSExpression *countExpression = [NSExpression expressionForFunction: @"count:"
arguments: [NSArray arrayWithObject:countPathExpression]];
NSExpressionDescription *countExpressionDescription = [[NSExpressionDescription alloc] init];
[countExpressionDescription setName: @"count"];
[countExpressionDescription setExpression: countExpression];
[countExpressionDescription setExpressionResultType: NSInteger32AttributeType];
i need Help guys to convert COUNT(case when ZISREAD = 0 then ZISREAD end)
in NSExpression