# EXPLORE 200: Exploring Behavioral Data with Data Distiller - A Case Study with Adobe Analytics Data

## Prerequisites

You need to make sure you complete this module that ingests Adobe Analytics web data into the Platform:

{% content-ref url="../prep-501-ingesting-json-test-data-into-adobe-experience-platform" %}
[prep-501-ingesting-json-test-data-into-adobe-experience-platform](https://data-distilller.gitbook.io/adobe-data-distiller-guide/prep-501-ingesting-json-test-data-into-adobe-experience-platform)
{% endcontent-ref %}

And of course, you should have:

{% content-ref url="../unit-1-getting-started/prep-400-dbvisualizer-sql-editor-setup-for-data-distiller" %}
[prep-400-dbvisualizer-sql-editor-setup-for-data-distiller](https://data-distilller.gitbook.io/adobe-data-distiller-guide/unit-1-getting-started/prep-400-dbvisualizer-sql-editor-setup-for-data-distiller)
{% endcontent-ref %}

## **Scenario**

We are going to ingest LUMA data into our test environment. This is a [fictitious online store ](https://luma.enablementadobe.com/content/luma/us/en.html)created by Adobe

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2F6truaKqY41U0A2QO8pze%2FScreen%20Shot%202023-08-28%20at%208.50.53%20AM.png?alt=media&#x26;token=7ab53270-4e4a-4dab-856a-119b6edd1f35" alt=""><figcaption><p>Luma website</p></figcaption></figure>

The fastest way to understand what is happening on the website is to check the Products tab. There are 3 categories of products for different (and all) personas. You can browse them. You authenticate yourself and also can add items to a cart. The data that we are ingesting into the Platform is the test website traffic data that conforms to the Adobe Analytics schema.&#x20;

We need to run some analytical queries on this dataset.&#x20;

## Exploratory 1-Dimensional Queries

The goal of this exercise is to explore every column of the dataset individually so that we get a deep understanding of the columns. Once we understand each column, we can then build 2-dimensional and even n-dimensional queries.

Let us first retrieve all the results:

```sql
SELECT * FROM luma_web_data;
```

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FS5bNXtxxbTIlCyeWIWnq%2FScreen%20Shot%202023-08-28%20at%2011.56.10%20AM.png?alt=media&#x26;token=e07abe55-3eb8-4443-89b1-59a02a0b9114" alt=""><figcaption><p>Results of SELECT *</p></figcaption></figure>

You can see that there are complex nested objects. Instead of going into the XDM schemas, we can query the data in place by using `to_json.`

Let us dig into the web JSON object (or XDM field group):

### Explore `web` Object

```sql
SELECT to_json(web) FROM luma_web_data;
```

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2Fy7zrAyJ7VRIzsUI0oNta%2FScreen%20Shot%202023-08-28%20at%2011.58.48%20AM.png?alt=media&#x26;token=0ccec521-0077-4003-b22a-2188aa7154fc" alt=""><figcaption><p>to_json is able to get information about the various fields within the web object.</p></figcaption></figure>

Let us dig one level deeper into `webPageDetails.` We will use the dot notation to access any field in the hierarchy.

```sql
SELECT web.webPageDetails FROM luma_web_data;
```

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2Fu1c7rJFZIvWcWUdkdewI%2FScreen%20Shot%202023-08-28%20at%204.01.13%20PM.png?alt=media&#x26;token=d861a817-6005-4c9f-92f1-fa0e1117b3d4" alt=""><figcaption><p>Digging into webPageDetails</p></figcaption></figure>

We can apply `to_json` again:

```sql
SELECT web.webPageDetails FROM luma_web_data;
```

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2Fl0oFNnl36VIf9UuIWKlu%2FScreen%20Shot%202023-08-28%20at%204.06.20%20PM.png?alt=media&#x26;token=3d1259c2-18c1-40fc-b313-017a43dd3135" alt=""><figcaption><p>to_json can be applied at any level of the hierarchy.</p></figcaption></figure>

`pageViews` is an object. Let us access the elements of that array

```sql
SELECT to_json(web.webPageDetails.pageViews) FROM luma_web_data;
```

You will get the following:

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FRv5w9bvP0IxDnxtsQizR%2FScreen%20Shot%202023-08-28%20at%204.06.20%20PM.png?alt=media&#x26;token=6c12c7a6-e319-40f5-8774-6d3d5144ea4c" alt=""><figcaption><p>Accessing pageViews details</p></figcaption></figure>

We can access the value by:

```sql
SELECT web.webPageDetails.pageViews.value FROM luma_web_data
```

And you will get:

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FbPqtpb6h8hmskarzXFKT%2FScreen%20Shot%202023-08-28%20at%204.12.42%20PM.png?alt=media&#x26;token=408dd286-8e9c-4a2f-96e0-6c35b25017c3" alt=""><figcaption><p>value=1 indicates that there was a single page view.</p></figcaption></figure>

### Explore `marketing` Object

Let us work on the `marketing` object:

```sql
SELECT to_json(marketing) FROM luma_web_data;
```

The results show information about campaigns:

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2Famjm86oi8qeqEVtxyL5P%2FScreen%20Shot%202023-08-28%20at%204.17.41%20PM.png?alt=media&#x26;token=23a69fde-a643-4a40-830a-f8100bdba4bb" alt=""><figcaption><p>marketing object gives information about the campaign association.</p></figcaption></figure>

### Explore `channel` Object

If you execute the following code:

```sql
SELECT to_json(marketing), to_json(channel) FROM luma_web_data;
```

You will observe that there is duplication of data across these fields. `marketing` object truly has a campaign name while the other fields are present in the `channel` object.

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FsCoP9bsFsv99qRYC1nwP%2FScreen%20Shot%202023-08-29%20at%2012.17.06%20AM.png?alt=media&#x26;token=25215a34-7246-44ab-b01e-dbcab0dde556" alt=""><figcaption><p>Duplication of fields in marketing and channel objects.</p></figcaption></figure>

Let us extract the channel type that is in the type field of the channel object as it has values such as search, email, and social.&#x20;

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FqUlFgQDm4APGRgkfhhFz%2FScreen%20Shot%202023-08-29%20at%2012.12.07%20AM.png?alt=media&#x26;token=d064eb4b-215c-4eb5-9467-00d90f0af3c1" alt=""><figcaption><p>channel object</p></figcaption></figure>

The code for this will be:

{% code overflow="wrap" %}

```sql
SELECT channel._id AS tracking_code, regexp_extract(channel._type, '[^/]+$', 0) AS channel_type, channel.mediaType AS channel_category FROM luma_web_data

```

{% endcode %}

The result will be:

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FwdRtSXoiGxPtRLNEtTOz%2FScreen%20Shot%202023-08-29%20at%2012.42.55%20AM.png?alt=media&#x26;token=b94ec86b-eac9-4437-a936-3d8e264c9b0a" alt=""><figcaption><p>Extraction of the channel fields.</p></figcaption></figure>

Note the usage of the regular expression that is extracting the last word in the `_type` field that looks like `_type":"https:`*`//ns.adobe.com/xdm/channel-types/XXX"`*

* `regexp_extract(channel._type, '[^/]+$', 0)`: This is the main part of the query where you use the `regexp_extract` function to perform regular expression extraction.
  * `channel._type`: This specifies the JSON field `"_type"` inside the `channel` JSON object.
  * `'[^/]+$'`: This is a regular expression pattern. Let's break it down:
    * `[^/]`: This part matches any character except a forward slash ("/").
      * `+`: This indicates that the previous pattern (`[^/]`) should occur one or more times consecutively.
      * `$`: This anchors the pattern to the end of the string.
  * `0`: This argument specifies the group index to return. In this case, `0` means that the entire match (the matched string) will be returned.

### Explore `ProductListItems` Array Object

Let us access the `ProductListItems` array:

```sql
SELECT to_json(productListItems) FROM luma_web_data;
```

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2F3z779s4PWCQiThGlts3d%2FScreen%20Shot%202023-08-28%20at%204.31.42%20PM.png?alt=media&#x26;token=8f0f264b-42c1-4f57-97bc-7df2b6e93efa" alt=""><figcaption><p>ProductListItems captures product information about the items added to cart or even browsed.</p></figcaption></figure>

{% hint style="info" %}
**Hint:** A single page view for ***Add to Cart*** event will have multiple product items.
{% endhint %}

To access the first elements of this array, use the following:

```sql
SELECT productListItems[0] FROM luma_web_data;
```

<div align="left" data-full-width="false"><figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FMIpBlDSU5NQyWkPRyeXi%2FScreen%20Shot%202023-08-28%20at%204.36.59%20PM.png?alt=media&#x26;token=3baf0d0f-d094-4039-8c2d-72703d23a21b" alt=""><figcaption><p>Accessing the first element of an array.</p></figcaption></figure></div>

Arrays offer themselves to even more interesting SQL queries. Arrays can be exploded i.e. each element of the array can be put into a separate row of a new table and other columns/fields will be duplicated:

```sql
SELECT explode(productListItems) FROM luma_web_data;
```

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FMeiatJufHEWdx1BtIHOy%2FScreen%20Shot%202023-08-28%20at%204.38.30%20PM.png?alt=media&#x26;token=fb1f8bdc-ed56-4eb8-b1a7-df811fd8b864" alt=""><figcaption><p>EXPLODE on the ProductListItems object. Array elements are put in separate rows.</p></figcaption></figure>

{% hint style="info" %}
**Hint:** You can also **`unnest`**&#x66;unction instead of **`explode`**`.`
{% endhint %}

### Explore `commerce` Object

Let us now explore the `commerce` object:

```sql
SELECT to_json(commerce) FROM luma_web_data;
```

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FXXbtBrbUnE74bNEJBE4R%2FScreen%20Shot%202023-08-28%20at%208.39.50%20PM.png?alt=media&#x26;token=550d518e-6200-4dd9-834b-c53b9278dec5" alt=""><figcaption><p>commerce object detaills.</p></figcaption></figure>

`commerce` object shows some commerce-related actions such as checkouts that the`webPageDetails` object does not have.

Let us reformat this object so that we can extract the commerce event types such as `productViews`, `productListAdds` and `checkouts` as strings. I want to do this because I want to use GROUP BY on these event types later on. The fact that some of them are populated while some are not indicates that this is a nested structure and we will have no choice but to look at the commerce object itself in the XDM schema.

First, let us extract these fields as strings:

```sql
SELECT (CASE
        WHEN commerce.checkouts.`value`==1 THEN 'checkouts'
        WHEN commerce.productViews.`value`==1 THEN 'productViews'
        WHEN commerce.productListAdds.`value`==1 THEN 'productListAdds'
    END) AS commmerce_event_type
FROM luma_web_data
```

The results are:

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FmCRmKijy340X2nXVzpMZ%2FScreen%20Shot%202023-08-29%20at%2012.02.14%20AM.png?alt=media&#x26;token=48dd085b-e781-4d0b-aa63-431c56072a3d" alt=""><figcaption><p>Extracting field names by using CASE logic.</p></figcaption></figure>

{% hint style="info" %}
**Note:** The syntax of ``commerce.checkouts.`value`==1.`` Here `value` has got two single opening quotation marks. This is to avoid conflict of value as a RESERVED keyword. The same will apply for ``commerce.`order`.* as`` well.
{% endhint %}

But our string-based approach has a serious flaw. If you check the field group  `commerce,` you will see a lot of commerce event types. There is no guarantee that we will only see the 3 eveent types that we identified above:

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FKjKCa0mD94Urb0Uo1mH1%2FScreen%20Shot%202023-08-28%20at%2010.09.16%20PM.png?alt=media&#x26;token=f1c57ca0-4700-4817-b33b-ae5fefafb317" alt=""><figcaption><p>commerce object contains a lot of commerce object types.</p></figcaption></figure>

To extract an arbitrary field name of the structs present in the `commerce` object, we will use:

{% code overflow="wrap" %}

```sql
SELECT commerce_event_type[0] AS commerce_event_type FROM (SELECT json_object_keys(to_json(commerce)) AS commerce_event_type FROM luma_web_data);

```

{% endcode %}

The result will be:

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FBPtI3LGwQrhmc9TcY4q4%2FScreen%20Shot%202023-08-29%20at%2012.02.36%20AM.png?alt=media&#x26;token=c60769df-8f33-45d5-b8f3-335d5b3c00b7" alt=""><figcaption><p>Results of using the json_keys_object function retrieves all the possible field names of the structs in the commerce object.</p></figcaption></figure>

Note the following:

1. `json_to_keys extracts` the top-level keys of the JSON objects present in commerce.&#x20;
2. `to_json` converts the JSON object to a string.
3. `commerce_event_type[0]` extracts the first and only element of this array.
4. Note that different structs in the commerce object have different values. Page view type structs will have a value equal to 1 while purchase type structs will have purchase totals. This extraction only works for extracting the commerce event types but does not extrapolate to the metadata of those events.

Alternatively, we could have simplified this query by avoiding the outer SELECT query by simply doing the following which will help us later:

{% code overflow="wrap" %}

```sql
SELECT json_object_keys(to_json(commerce))[0] AS commerce_event_type FROM luma_web_data
```

{% endcode %}

### Explore `endUserIDs` Object

Let us also check the `endUserIDs`

```sql
SELECT to_json(endUserIDs) FROM luma_web_data;
```

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FnfV6gbPawfbVxSRu1xBK%2FScreen%20Shot%202023-08-28%20at%208.46.16%20PM.png?alt=media&#x26;token=a790512c-46c0-48c6-b101-2b9025269964" alt=""><figcaption><p>endUserIDs contains email and mmcid as the identities of the person.</p></figcaption></figure>

We can extract the `email addresses` by using:

```sql
SELECT endUserIDs._experience.emailid.id FROM luma_web_data;
```

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2F4xA9K9BLViKVQB0fSjPb%2FScreen%20Shot%202023-08-28%20at%209.02.17%20PM.png?alt=media&#x26;token=4e1dce2f-10c9-4d58-bad8-d5ab92ec5f21" alt=""><figcaption><p>Emails extracted from the ednUserIDs object.</p></figcaption></figure>

We can extract the `mcids` by using

```sql
SELECT endUserIDs._experience.mcid.id FROM luma_web_data;
```

The results are:

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FJqFh6dNDVjDB6nDakeBJ%2FScreen%20Shot%202023-08-28%20at%209.03.49%20PM.png?alt=media&#x26;token=a5d7334f-7bea-43d8-a2d4-94a33c9f2221" alt=""><figcaption><p>mcids extracted from the ednUserIDs object.</p></figcaption></figure>

## Create a Semi-Flat View of the Adobe Analytics Data

Let us take the queries that we built and put them all together to create a SQL query that creates a somewhat flat structure of the data i.e. we will not expand `ProductListItems.`&#x20;

```sql
CREATE TEMP TABLE Adobe_Analytics_View AS
SELECT _id AS event_id, 
       `timestamp` AS `TimeStamp`,   
       endUserIDs._experience.mcid.id AS mcid_id,
       endUserIDs._experience.emailid.id  AS email_id,
       web.webPageDetails.`name` AS WebPageName,
       json_object_keys(to_json(commerce))[0] AS commerce_event_type,
       productListItems AS productListItems,
       marketing.campaignName AS campaignName,
       channel._id AS campaign_tracking_code, 
       regexp_extract(channel._type, '[^/]+$', 0) AS channel_type,
       channel.mediaType AS channel_category
FROM luma_web_data;

SELECT * FROM  Adobe_Analytics_View 
```

Note the following:

1. We have assembled all the 1-dimensional `SELECT` queries into a view.
2. The view is semi-flat because `ProductListItems` is not flattened i.e. put into separate rows or columns.&#x20;
3. We use a CREATE TEMP TABLE to store this view instead of materializing the view immediately because we want TEMP tables to be cached in Data Distiller for fast exploration.

{% hint style="info" %}
**Tip:** If you want fast exploration of data in *ad hoc query engine*, just create a TEMP TABLE with the data that you want to explore. Remember that these temp tables are wiped after the user session ends as the cache is ephemeral.
{% endhint %}

{% hint style="danger" %}
**Warning:** If you are on and off, DBVisualizer will disconnect from Data Distiller. In that case, it will complain that the temp table does not exist because your session needs to be reestablished. In such situations where you cannot maintain the connectivity for long periods of time, you are better off just using `CREATE TABLE` which will materialize the data onto the Data Lake.
{% endhint %}

If you decide to use `CREATE TABLE:`

```sql
CREATE TABLE Adobe_Analytics_View AS
SELECT _id AS event_id, 
       `timestamp` AS `TimeStamp`,   
       endUserIDs._experience.mcid.id AS mcid_id,
       endUserIDs._experience.emailid.id  AS email_id,
       web.webPageDetails.`name` AS WebPageName,
       json_object_keys(to_json(commerce))[0] AS commerce_event_type,
       productListItems AS productListItems,
       marketing.campaignName AS campaignName,
       channel._id AS campaign_tracking_code, 
       regexp_extract(channel._type, '[^/]+$', 0) AS channel_type,
       channel.mediaType AS channel_category
FROM luma_web_data;

SELECT * FROM  Adobe_Analytics_View 
```

Regardless of what you use, the results of the query look like:

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FCHDvZlla1t8vUxBGIgh0%2FScreen%20Shot%202023-08-30%20at%205.00.51%20PM.png?alt=media&#x26;token=1b73fa52-ff52-49a8-8963-4ffeaaa2007e" alt=""><figcaption><p>Semi-flat view of Adobe Analytics data.</p></figcaption></figure>

With this view, you are now set to do any kind of analysis. The methodology shown above can be applied to any schemas we get from the Adobe Apps.

## Appendix: Adobe App Schemas to Explore

The skills that you have learned in this module should set you up for success with any complex dataset that you will come across in the Adobe ecosystem.&#x20;

### Adobe Journey Optimizer

If you are interested in Adobe Journey Optimizer, you should explore this module:

{% content-ref url="broken-reference" %}
[Broken link](https://data-distilller.gitbook.io/adobe-data-distiller-guide/unit-2-data-distiller-data-exploration/broken-reference)
{% endcontent-ref %}

### Adobe Commerce

You should also explore Adobe Commerce with Adobe Experience Platform integration. Specifically, you need to be aware of this:

1. The [Adobe Commerce field groups](https://experienceleague.adobe.com/docs/commerce-merchant-services/experience-platform-connector/fundamentals/update-xdm.html?lang=en) (JSON fields as a group) are very similar to that of Adobe Analytics schema.&#x20;
2. There are [some field groups](https://experienceleague.adobe.com/docs/commerce-merchant-services/experience-platform-connector/event-forwarding/events.html?lang=enhttps://experienceleague.adobe.com/docs/commerce-merchant-services/experience-platform-connector/event-forwarding/events.html?lang=en) that are unique to Adobe Commerce because of the nature of the storefront setup.&#x20;
3. There can always be[ custom events ](https://experienceleague.adobe.com/docs/commerce-merchant-services/experience-platform-connector/event-forwarding/custom-events.html?lang=en)that are unique to an industry or implementation.

### Adobe Campaign

You can bring [Campaign V8 delivery logs](https://experienceleague.adobe.com/docs/experience-platform/sources/ui-tutorials/create/adobe-applications/campaign.html?lang=en) into the Adobe Experience Platform.

### Marketo Engage

You can[ bring in](https://experienceleague.adobe.com/docs/experience-platform/sources/ui-tutorials/create/adobe-applications/marketo.html?lang=en) all of these datasets from Marketo:

<figure><img src="https://1899859430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEhcgqFIfGdE0GXJzi5yR%2Fuploads%2FyDwpIsSIsFBQgJOF5QvW%2Fimage.png?alt=media&#x26;token=912ed1ab-a7fd-44b8-984c-e22f12589fe8" alt=""><figcaption></figcaption></figure>

You can also bring in [custom activity data](https://experienceleague.adobe.com/docs/experience-platform/sources/ui-tutorials/create/adobe-applications/marketo-custom-activities.html?lang=en) as well.

## Appendix: Array Operations

These are the array functions supported in Data Distiller:

* `size()` to determine the number of elements in a list (array)
* The bracket `[]` notation to access specific elements in arrays
* `transform()` to apply a transformation to all elements in an array
* `explode()` to transform elements in a list into single rows
* `posexplode()` to transform elements in a list into single rows along with a column for the index the element had in the original list
* `array_contains()` to determine if an array contains a specific element
* `array_distinct()` to remove duplicates from an array
* `array_except()` to subtract to arrays
* `array_intersect()` to determine the intersection (overlapping elements) of two arrays
* `array_union()` to determine the union of two arrays without duplicates
* `array_join()` to concatenate the elements of an array using a delimiter
* `array_max()` to get the largest element from an array
* `array_min()` to get the smallest element from an array
* `array_position()` to a specific element from an array counting starting with 1
* `array_remove()` to remove a specific element from an array
* `array_repeat()` to repeat the elements of an array a specific number of times
* `array_sort()` to sort an array
* `arrays_overlap()` to check if two arrays have at least one common element
