我目前有一个这样的 SQL 查询:
SELECT `source`.`video_id` AS `video_id`, count(*) AS `count`
FROM (SELECT
*,
(SELECT param.value.string_value
FROM UNNEST(event_params) AS param
WHERE param.key="content_type") as content_type,
(SELECT param.value.string_value
FROM UNNEST(event_params) AS param WHERE param.key="item_id") as video_id
FROM `analytics_275841270.events_*`, UNNEST(event_params) as event
where event.value.string_value = 'v-academy') `source`
GROUP BY `video_id`
ORDER BY `count` DESC, `video_id` ASC
limit 5
产生以下结果:
sql n 结果
我想将我的 video_id 重新映射为“video26”之类的字符串。
如何将video_id
与静态字符串连接?