User Tools

Site Tools


transformations:aggregate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
transformations:aggregate [2015/04/10 14:04] elenaptransformations:aggregate [2015/04/27 19:51] elenap
Line 11: Line 11:
   * Max   * Max
  
 +EXAMPLE
 +
 +**Source table:** The longest rivers in the world
 +
 +^  River  ^  Length(km)  ^  Continent  ^
 +| Nile  |  6650  |  Africa  |
 +| Amazon  |  6400  |  South America  |
 +| Yangtze  |  6300  |  Asia  |
 +| Mississippi  |  6275  |  North America  |
 +| Yenisei  |  5539  |  Asia  |
 +| Yellow River  |  5464  |  Asia  |
 +| Ob  |  5410  |  Asia  |
 +| Paraná  |  4880  |  South America  |
 +
 +**Objective:** Find out which are the longest rivers on each continent.
 +
 +**Transformation parameters:**
 +
 +  * Calculate: Length(km)   
 +  * Aggregation: Max
 +  * Group by: Continent; River
 +
 +**Output table:**
 +
 +^  River  ^  Continent  ^  Max of Length(km)  ^
 +| Nile  |  Africa  |  6650  |
 +| Ob  |  Asia  |  5410  |
 +| Yangtze  |  Asia  |  6300  |
 +| Yellow River  |  Asia  |  5464  |
 +| Yenisei  |  Asia  |  5539  |
 +| Mississippi  |  North America  |  6275  |
 +| Amazon  |  South America  |  6400  |
 +| Paraná  |  South America  |  4880  |
  
transformations/aggregate.txt · Last modified: 2021/09/12 11:25 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki