Merging tables using SQL filtration
Use case
You 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 2018
- customer type in Table 2: business
Solution
- Switch 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:
SQLWHERE ('...' >= "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.