task up to arrays

This commit is contained in:
dr0zd
2026-01-29 04:50:55 +07:00
parent 97d55ac267
commit 0e385bd6d0
6 changed files with 420 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
--task 1
select
user_id,
indexOf(tags, 'promo') as promo_index,
arrayJoin(tags)
from events
where has(tags, 'promo')
-- task 2
select
user_id,
scores['math'] as math_score,
mapValues(scores) as all_values
from metrics
-- task 3
select
name,
contact.type as contact_type,
contact.value as contact_value
from users_nested
array join contacts as contact
where contact.type = 'email'