Table Filter, Charts & Spreadsheets for Confluence Table Transformer Custom Transformation - use cases with advanced SQL queries Merging/JOINing tables with SQL Current: Merging tables using SQL filtration PDF Download PDF Download page Merging tables using SQL filtration. Current page All pages Merging tables using SQL filtration Use caseYou have two tables where the columns differ.You need to merge two tables where the entries meet the conditions:transaction date in Table 1: October 2018customer type in Table 2: businessSolutionSwitch the page to the edit mode.Insert the Table Transformer macro and paste the tables 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 JOIN T2 ON T1.'Transaction ID' = T2.'Transaction ID' WHERE ( 'Transaction Date' >= "10 / 1 / 2018" AND 'Transaction Date' < "11 / 1 / 2018" ) AND ( 'Customer Type' = "Business" ) SQL WHERE ('...' >= "10/1/2018" AND '...' < "11/1/2018") AND ('...' = "...") extracts only those records that fulfill a specified condition.Click Next.Define the table settings and view options if needed.Save the macro and the page. You can use FORMATWIKI function for the purposes of cell formatting. ×