AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
统计抽出数据 === ## 知识点 - distinct # 过滤重复的数据 - sum - max/min - group by/haing ## 实战 ``` > select distinct team from users; > select sum(score) from users; > select max(socre) from users; > select min(score) from users; > select * from users where score = (select max(score) from users); > select * from users where score = (select min(score) from users); > select team,max(score) from users group by team; > select team,max(score) from users group by team having max(score) >= 25; > select team,max(score) from users group by team having max(score) >= 25 ; ```