题解 | #截取出年龄#
截取出年龄
http://www.nowcoder.com/practice/b8d8a87fe1fc415c96f355dc62bdd12f
SELECT
age,
count(device_id) number
from(
SELECT
device_id,REGEXP_SUBSTR(profile,'[^,]+',1,3) age
from user_submit
) t
group by age
order by age desc
截取出年龄
http://www.nowcoder.com/practice/b8d8a87fe1fc415c96f355dc62bdd12f
SELECT
age,
count(device_id) number
from(
SELECT
device_id,REGEXP_SUBSTR(profile,'[^,]+',1,3) age
from user_submit
) t
group by age
order by age desc
相关推荐