| ch_join_query | R Documentation |
JOIN query from two sub-queriesWraps two SQL sub-queries in a single SELECT ... JOIN ... USING ...
statement. Both sub-queries are used as derived tables, so they can be any
valid SELECT statements.
ch_join_query(q1, q2, using, type = "LEFT", select = "*", a1 = "l", a2 = "r")
q1 |
a character string with the left-hand side |
q2 |
a character string with the right-hand side |
using |
a character string with the column(s) to join on, as expected
after the |
type |
the join type, passed verbatim before the |
select |
a character string with the columns to select. Default:
|
a1 |
alias given to the left-hand side sub-query. Default: |
a2 |
alias given to the right-hand side sub-query. Default: |
A character string with the assembled JOIN query.
ch_union_query()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.