UNION query from several sub-queriesWraps each input sub-query as a derived table and combines them with
UNION DISTINCT or UNION ALL. A single sub-query is returned wrapped but
without any UNION clause.
ch_union_query(queries, mode = c("DISTINCT", "ALL"))A character string with the assembled UNION query.
a character vector of SELECT sub-queries to combine
the union mode: "DISTINCT" (default) to deduplicate rows
across sub-queries, or "ALL" to keep every row
ch_join_query()