题解 16 | #查找GPA最高值#
【分类】:聚合函数、max
分析思路
select 查询结果 [max(gpa) as gpa]
from 从哪张表中查找数据 [user_profile]
where 查询条件 [复旦大学]
求解代码
select
max(gpa) as gpa
from user_profile
where university = '复旦大学'
【分类】:聚合函数、max
select 查询结果 [max(gpa) as gpa]
from 从哪张表中查找数据 [user_profile]
where 查询条件 [复旦大学]
select
max(gpa) as gpa
from user_profile
where university = '复旦大学'
相关推荐