diff options
author | Shay <me@shayacrich.com> | 2017-03-02 20:55:30 +0200 |
---|---|---|
committer | Shay <me@shayacrich.com> | 2017-03-02 20:55:30 +0200 |
commit | 069e33de666b64deae1e6dc3992a6b46e2687ee4 (patch) | |
tree | 2f249bf43c3ccf33b71929666be63be67f598d5a | |
parent | f294e649b7e659d36744e3af0c462d80728e5f41 (diff) | |
download | rails-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.md | 2 |
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') ``` |