Open markwillis82 opened 13 years ago
You can do GROUP BY (or anything else arbitrary) with the .add() chain:
db.query().select("COUNT(*)").from("messages").add(" GROUP BY user_id").execute();
Just make sure you put a space BEFORE the GROUP BY, as it doesn't do it for you (it will look like "FROM messagesGROUP BY...")
NOT to confuse "add()" with "and()".
Hi,
I can't seem to find in the documentation (code.google.com/apis/maps/documentation/javascript/reference.html) how to perform a groupby (without running a raw statement) is this something planned for future release?