题解 | #查询结果去重#

用where过滤空值练习

http://www.nowcoder.com/practice/08c9846a423540319eea4be44e339e35

SELECT device_id,gender,age,university from user_profile
    WHERE age IS NOT NULL;

查询年龄不为空的数据。

SELECT device_id,gender,age,university from user_profile
    WHERE age IS NULL;

查询年龄为空的数据。

全部评论

相关推荐

评论
3
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务