Use case

You need to look up tables by partial match.

Solution

  1. Switch the page to the edit mode.

  2. Insert the Table Transformer macro and paste the table or the macros outputting tables within the macro body.

  3. Select the macro and click Edit.

  4. In the Presets tab select Custom transformation and click Next.

  5. Enter the following SQL query:

    SELECT *
    FROM T1 LEFT JOIN T2 ON 
    T1.'Codes'->split("KR")->indexOf(REPLACE(T2.'Code', "KR", ""))>-1
    SQL
  6. Save the macro and the page.