google sheets query left join one-to-many
问题 I have 2 tables and I am trying to perform a left join using google query language,or any formula that could output the result set. Table1 Table2 Result set How can I accomplish that ? Regards 回答1: OK well here is an inner join to start with: =ArrayFormula(query(iferror(split(flatten(if(transpose(filter(Table2!B2:B,Table2!B2:B<>""))=filter(Table1!A2:A,Table1!A2:A<>""),filter(Table1!A2:A,Table1!A2:A<>"")&"|"&transpose(filter(Table2!A2:A,Table2!A2:A<>"")),)),"|")),"select Col1,Col2 where Col1