Closed rocketraman closed 9 years ago
Thanks for the suggestion @rocketraman . That sounds useful, especially because it demonstrates the use of ungroup()
which might not be obvious.
I think the query should be
r.table('movies').group('title').count().ungroup()
.filter(r.row('reduction').gt(1))
right?
@danielmewes Yes I think your query is simpler, and the result shape is closer to the shape of the SQL result. Cool!
An example of an SQL with a
group by
having
count(*) > x
would be useful. For example, in the movies database, if one wanted to find the duplicate movies (not distinct).