已注销
已注销
全部
题解 | #计算25岁以上和以下的用户数量#
全部文章
分类
归档
标签
去牛客网
登录
/
注册
题解 | #计算25岁以上和以下的用户数量#
666 浏览
0 回复
2022-11-07
已注销
+关注
select
'25岁以下'
,
count
(age
is
null
)
from
user_profile
where
age<
25
or
age
is
null
union all
select
'25岁及以上'
,
count
(age)
from
user_profile
where
age>=
25
数据库
Mysql
举报
收藏 2
赞
评论加载中...