How do I use sum()
, count()
, and group by
in Berkeley DB? Is there any alternative way?
Asked
Active
Viewed 496 times
1
1 Answers
1
Which API are you using? If you're using the key/value API, then you will need to implement those functions yourself, essentially by scanning the database using a cursor. If you are using the SQL API, then you can simply do a "SELECT sum(), count() ... GROUP BY ..." SQL statement.
You may want to post questions like this to the Berkeley DB forum.

dsegleau
- 1,942
- 9
- 13
-
@user633117 don't forget to upvote when you have sufficient rep. – Eitan T Jun 21 '12 at 13:11