head
Return a set number of rows from the top of the data extract.
Introduction
Use the head enrichment to return a set number of rows from the top of the data extract. All other rows are removed from the data extract. This is the opposite of the tail enrichment.
Creating the enrichment
For more information on creating an enrichment, see Using custom scripts.
Configuring the enrichment
To configure the enrichment, fill in the following fields. Required fields are marked with an asterisk (*).
-
N*
-
Enter the number of rows to be returned from the top of the data extract.
-
Subtable
-
Enter the name for a subtable that you want to contain the enriched data. The enrichment is applied to the whole data extract, then the enriched data is output into the subtable you have named here.
This subtable is a temporary table, which means it only exists for this custom script. You can apply additional instructions within the same custom script to the subtable. However, the subtable cannot be used in any other custom scripts.
Example
Enrichment configuration
-
N*
-
3
Data table before enrichment
Row Number |
Campaign |
Account IDs |
---|---|---|
1 |
Aerified |
377303400 |
2 |
Kanlam |
634282082 |
3 |
Y-find |
439889356 |
4 |
Stringtough |
515023082 |
5 |
Rank |
796714697 |
6 |
Tampflex |
698305305 |
7 |
Holdlamis |
604447800 |
Data table after enrichment
Row Number |
Campaign |
Account IDs |
---|---|---|
1 |
Aerified |
377303400 |
2 |
Kanlam |
634282082 |
3 |
Y-find |
439889356 |