Syntax
Parameters
| Parameter | Description | Supported input types |
|---|---|---|
<array> | The array column over which the function will count the elements. | Any ARRAY type |
Return Type
INTEGER
Example
For this example, we will create a tablelevels as shown below. This table will highlight the levels that a certain player has completed.
ARRAY_COUNT_GLOBAL to learn how many total array elements are in all rows for the user esimpson.
17
If you want to count elements based on specific criteria, you can use the ARRAY_COUNT function with a SUM aggregation as demonstrated below.
11