Body: <p>I want to join sections <code>foo</code> and <code>bar</code> in a <code>craft entry query</code>.
  Where <code>foo.id</code> = <code>bar.title</code>.</p>
  <p>How do I query all records in one go in style like <code>craft.entries.section...</code>?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-12-13T10:35:36.203Z
Comments.Text: Please post your existing code, describe what's not working about it and what you're trying to do in more detail.
Comments.UserDisplayName: MoritzLost
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-12-13T16:29:50.910Z
Comments.Text: Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
Comments.UserDisplayName: Community
Tags: <entry><query><join>
Title: How to join sections in craft entry query
ThreadText: # How to join sections in craft entry query
  
  (Asked by: username_0 on 2022-12-13)
  
  I want to join sections `foo` and `bar` in a `craft entry query`.
  Where `foo.id` = `bar.title`.
  
  How do I query all records in one go in style like `craft.entries.section...`?
  
  **Tags:** entry, query, join
  
  > **Comments:**
  > **username_1**: Please post your existing code, describe what's not working about it and what you're trying to do in more detail.  
  > **username_2**: Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.  
  
  ---
  
  ## 0 answers
  
  