playground:playground
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| playground:playground [2025/01/06 07:32] – [Examples] yurii | playground:playground [2025/01/06 08:15] (current) – yurii | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | {{ transformations: | + | {{ transformations: |
| - | ====== | + | ====== |
| - | Category: Transform / Basic\\ | + | Category: Transform / Advanced\\ |
| \\ | \\ | ||
| =====Description===== | =====Description===== | ||
| - | This action | + | This action |
| - | Duplicating names are not allowed.\\ | + | \\ |
| + | =====Examples===== | ||
| + | **Example #1:**\\ | ||
| + | >Perform a //natural merge// on the following tables, based on their matching columns.\\ | ||
| + | |||
| + | **Before (source table):** | ||
| + | |||
| + | >**Table 1:** Names with addresses | ||
| + | |||
| + | ^FirstName | ||
| + | |Robert |Smith |123 Any Street | | ||
| + | |Julie |Rodriguez |999 South Street | | ||
| + | |Tammy |Thomas |454 North Avenue | | ||
| + | |||
| + | |||
| + | >**Table 2:** Names with contact information\\ | ||
| + | |||
| + | ^FirstName | ||
| + | |Julie |Rodriguez |222-222-2222 |julie@myemail.com | | ||
| + | |Tammy |Thomas |333-333-3333 |tammy@myemail.com | | ||
| + | |Robert |Smith |111-111-1111 |robert@myemail.com | | ||
| \\ | \\ | ||
| - | =====Action settings===== | + | **After (result table):** |
| - | ^Setting^Description^ | + | ^FirstName |
| - | |Column|Select the existing column name in the left drop-down| | + | |Robert |
| - | |To|Specify the new column name in the right text box.| | + | |Julie |Rodriguez |999 South Street |222-222-2222 |julie@myemail.com | |
| - | Additional columns can be renamed by clicking the //Rename more columns// option. | + | |Tammy |Thomas |454 North Avenue |333-333-3333 |tammy@myemail.com | |
| \\ | \\ | ||
| - | =====Examples===== | + | **Action parameters: |
| - | ====Example # | + | > Other table is "Table 2" |
| - | >Rename the column | + | > Mode is "Lookup" |
| - | ===Before (source table)=== | + | \\ \\ |
| + | **EXAMPLE #2:** Perform a //natural merge// on the following tables. | ||
| - | ^River | + | \\ |
| - | | Nile | 6650| 4132|Africa | + | **Table 1:** Names with addresses\\ |
| - | | Amazon | + | |
| - | | Yangtze | + | |
| - | | Mississippi | + | |
| - | ===After (result table)=== | + | ^FirstName |
| + | |Robert |Smith |123 Any Street | | ||
| + | |Julie |Rodriguez |999 South Street | | ||
| + | |Tammy |Thomas |454 North Avenue | | ||
| - | ^River ^Length (km) ^Length (miles) | + | \\ |
| - | | Nile | + | **Table 2:** Names with contact information\\ |
| - | | Amazon | + | |
| - | | Yangtze | + | ^FName ^LName ^PhoneNum |
| - | | Mississippi | + | |Julie |Rodriguez |
| + | |Tammy |Thomas | ||
| + | |Robert | ||
| \\ | \\ | ||
| - | ===Action parameters:=== | + | **Action parameters:** |
| - | > | + | > Other table is "Table 2" |
| - | > | + | > Mode is " |
| \\ | \\ | ||
| - | ====Community examples==== | + | **Result: |
| - | | + | ^FirstName |
| - | * [[https:// | + | |Robert |Smith |123 Any Street |
| - | * [[https:// | + | |Julie |Rodriguez |999 South Street | |
| - | | + | |Tammy |Thomas |454 North Avenue | |
| - | * [[https:// | + | |
| - | | + | |
| + | |||
| + | |||
| + | \\ | ||
| + | =====Use cases===== | ||
| + | Use this action auto-merge two tables without having to manually select specific columns. | ||
| \\ | \\ | ||
| - | =====Shortcuts===== | + | =====Action settings===== |
| - | Fast ways to create | + | ^Setting ^Description ^ |
| + | |Other table |Select the second table to merge into the current dataset. | | ||
| + | |Mode |Options:\\ //Lookup// (for each row in this table, get any one matching row from the other table and ignore other rows),\\ //Inner join// (mere only rows with values that exist in both tables),\\ //Left join// (for each row get all matching rows from the other table),\\ //Full join// (merge all matching and non-matching rows from the other table).| | ||
| - | *Right-click | + | \\ |
| - | | + | =====Remarks===== |
| + | Merges are based on column | ||
| + | |||
| + | If there are no matching columns between | ||
| Line 64: | Line 97: | ||
| =====See also===== | =====See also===== | ||
| - | * [[transformations: | + | * [[transformations: |
| - | * [[transformations: | + | * [[transformations: |
| - | * [[transformations: | + | * [[transformations: |
playground/playground.txt · Last modified: by yurii