Table Filter, Charts & Spreadsheets for Confluence Table Transformer Custom Transformation - use cases with advanced SQL queries Merging/JOINing tables with SQL Current: Merging tables by partial match PDF Download PDF Download page Merging tables by partial match. Current page All pages Merging tables by partial match Use caseYou need to look up tables by partial match.SolutionSwitch the page to the edit mode.Insert the Table Transformer macro and paste the table or the macros outputting tables within the macro body.Select the macro and click Edit.In the Presets tab select Custom transformation and click Next.Enter the following SQL query: SELECT * FROM T1 LEFT JOIN T2 ON T1.'Codes'->split("KR")->indexOf(REPLACE(T2.'Code', "KR", ""))>-1 SQL Save the macro and the page. ×