aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShay <me@shayacrich.com>2017-03-02 20:55:30 +0200
committerShay <me@shayacrich.com>2017-03-02 20:55:30 +0200
commit069e33de666b64deae1e6dc3992a6b46e2687ee4 (patch)
tree2f249bf43c3ccf33b71929666be63be67f598d5a
parentf294e649b7e659d36744e3af0c462d80728e5f41 (diff)
downloadrails-069e33de666b64deae1e6dc3992a6b46e2687ee4.tar.gz
rails-069e33de666b64deae1e6dc3992a6b46e2687ee4.tar.bz2
rails-069e33de666b64deae1e6dc3992a6b46e2687ee4.zip
fixed suspected typo in sample sql query
-rw-r--r--guides/source/active_record_querying.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md
index 31220f9be2..38a9d61f4b 100644
--- a/guides/source/active_record_querying.md
+++ b/guides/source/active_record_querying.md
@@ -1871,7 +1871,7 @@ Which will execute:
```sql
SELECT count(DISTINCT clients.id) AS count_all FROM clients
- LEFT OUTER JOIN orders ON orders.client_id = client.id WHERE
+ LEFT OUTER JOIN orders ON orders.client_id = clients.id WHERE
(clients.first_name = 'Ryan' AND orders.status = 'received')
```