From 22b0dbe82cdc3c29c2e0036d1fa8f8d8f5530a5d Mon Sep 17 00:00:00 2001 From: Lew Parker Date: Thu, 13 Dec 2012 17:16:36 -0700 Subject: Make GROUP BY example more accurate and complete. --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.markdown') diff --git a/README.markdown b/README.markdown index afef04212a..70b378ff33 100644 --- a/README.markdown +++ b/README.markdown @@ -54,7 +54,7 @@ What are called `LIMIT` and `OFFSET` in SQL are called `take` and `skip` in Arel `GROUP BY` is called `group`: - users.group(users[:name]) # => SELECT * FROM users GROUP BY name + users.project(users[:name]).group(users[:name]) # => SELECT users.name FROM users GROUP BY users.name The best property of the Relational Algebra is its "composability", or closure under all operations. For example, to restrict AND project, just "chain" the method invocations: -- cgit v1.2.3