abundant-air-78515
01/19/2024, 11:18 PMfresh-football-47124
fresh-football-47124
abundant-air-78515
01/21/2024, 3:07 PMSELECT
2c.id AS value,
3c.created_at AS timestamp,
4c.employee_account_id AS user_id,
5c.company_id as company_id
6FROM
7 connection c
8 INNER JOIN account AS a ON a.id = c.employee_account_id
9 WHERE
10 c.initiated_by = 'employee'
Here is the sql , the value is a id and i want to see what test generetes most idsabundant-air-78515
01/21/2024, 3:07 PMabundant-air-78515
01/21/2024, 3:08 PMabundant-air-78515
01/21/2024, 3:08 PMabundant-air-78515
01/22/2024, 10:23 AMfresh-football-47124
fresh-football-47124
abundant-air-78515
01/25/2024, 5:39 PMrhythmic-agent-34208
01/29/2024, 6:38 PMSELECT
user_id,
timestamp,
1 as value
FROM
purchases;
This SQL query is designed to count the number of purchases per user. It selects the `user_id` and `timestamp` for each purchase event and assigns a constant value of `1` to each event.
When this query is used in GrowthBook, the `value` column will be summed up to count the total number of purchase events per user.abundant-air-78515
01/30/2024, 6:32 AMabundant-air-78515
01/30/2024, 6:46 AMabundant-air-78515
01/30/2024, 6:47 AMabundant-air-78515
01/30/2024, 6:03 PM