diff options
author | प्रथमेश Sonpatki <csonpatki@gmail.com> | 2016-01-28 10:00:52 +0530 |
---|---|---|
committer | प्रथमेश Sonpatki <csonpatki@gmail.com> | 2016-01-28 10:00:52 +0530 |
commit | 1ac3fb9f06f57840311cb9f04cd6887d2ffde479 (patch) | |
tree | 97c856760214223ab1b0e2da0023de1d401503c9 /guides | |
parent | 74bee8353b5189537e83043e0b78ac28c049e8e8 (diff) | |
parent | 69d657db6faa24a237bebe564193a0a61decb01f (diff) | |
download | rails-1ac3fb9f06f57840311cb9f04cd6887d2ffde479.tar.gz rails-1ac3fb9f06f57840311cb9f04cd6887d2ffde479.tar.bz2 rails-1ac3fb9f06f57840311cb9f04cd6887d2ffde479.zip |
Merge pull request #23299 from CollinGraves/patch-1
English explanation to multi-level nested join
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_querying.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index 784be91845..63658e7c8b 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -1085,6 +1085,8 @@ SELECT categories.* FROM categories INNER JOIN tags ON tags.article_id = articles.id ``` +Or, in English: "return all categories that have articles, where those articles have a comment made by a guest, and where those articles also have a tag." + #### Specifying Conditions on the Joined Tables You can specify conditions on the joined tables using the regular [Array](#array-conditions) and [String](#pure-string-conditions) conditions. [Hash conditions](#hash-conditions) provide a special syntax for specifying conditions for the joined tables: |