摘要: 参考答案 select round(max(gpa), 1) as gpa from user_profile where university = '复旦大学'; 总结 round函数了解一下 没仔细阅读题目,忽略了条件,浪费了一些时间,下回注意。 阅读全文
posted @ 2022-10-26 21:23 莫提默 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 通过代码 1 2 3 4 5 6 7 select '25岁以下', count(ifnull(age, 24)) as number from user_profile where age < 25&nbs***bsp;age is null union select '25岁及以上', coun 阅读全文
posted @ 2022-10-26 20:36 莫提默 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 通过的代码 1 2 3 4 5 6 7 select device_id, gender, age, gpa from user_profile where university = '山东大学' union all select device_id, gender, age, gpa from u 阅读全文
posted @ 2022-10-26 19:57 莫提默 阅读(47) 评论(0) 推荐(0) 编辑