Objective C: CoreData and aggregation

Posted by Ralf on Stack Overflow See other posts from Stack Overflow or by Ralf
Published on 2010-06-16T20:40:29Z Indexed on 2010/06/16 20:42 UTC
Read the original article Hit count: 330

Filed under:
|
|
|

Given a CoreData-Entity with an date (days) and an ammount called Transaction. Is it with CoreData possible (and how) to aggregate/group the 'table' (with all Transactions) by Date and calculate the sum of the day in a second column/attribute? (the SQL-Solution would be SELECT date, sum(ammount) FROM transaction GROUP BY date)

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c