如何返回加州州的城市及其安装率(安装应用的用户数占有活动的用户数),并按从高到低的顺序排列?Table name = Events
SELECT location, COUNT(*) AS num_of_installs
FROM data_mapping.Events
WHERE location LIKE '%California' AND event_type='install'
GROUP BY location
如何返回加州州的城市及其安装率(安装应用的用户数占有活动的用户数),并按从高到低的顺序排列?Table name = Events
SELECT location, COUNT(*) AS num_of_installs
FROM data_mapping.Events
WHERE location LIKE '%California' AND event_type='install'
GROUP BY location
1条答案
按热度按时间oyxsuwqo1#
我不想回答你的问题,但你可以使用
window functions
来计算利率。请检查下一个查询:SQLize - online SQL editor