当前位置:网站首页>sql server中 两表查询 平均数 分组
sql server中 两表查询 平均数 分组
2022-08-05 08:50:00 【CSDN问答】
问 35 36 如何实现
--35:查询每门课程的平均成绩,要求列出课程名和平均成绩。
select Course.Cname,AVG(SC.Grade) from Course,SC where SC.Cno=Course.Cno group by Course.Cname,SC.Grade
--36:查询每位学生的总成绩,要求列出学生名和总成绩。
select Student.Sname,sum(SC.Grade) from Student,SC where SC.Sno=Student.Sno group by SC.Grade,Student.Sname
边栏推荐
猜你喜欢
基因数据平台
Why is pnpm hitting npm and yarn dimensionality reduction?
Chapter 12 贝叶斯网络
苹果官网商店新上架Mophie系列Powerstation Pro、GaN充电头等产品
ps怎么拼图,自学ps软件photoshop2022,PS制作拼图效果
原型&原型链
动态库之间回调函数使用
DTcloud 装饰器
egg框架中解决跨域的三种方案
How to make pictures clear in ps, self-study ps software photoshop2022, simple and fast use ps to make photos clearer and more textured
随机推荐
IT研发/开发流程规范效能的思考总结
DPU — 功能特性 — 存储系统的硬件卸载
egg框架
路由----router
Controller-----controller
EA谈单机游戏:仍是产品组合中极其重要的部分
Fiddler tool explanation
JS语法使用
数据源对象管理Druid和c3p0
写出了一个CPU占用极高的代码后引发的思考
DTcloud 装饰器
php向mysql写入数据失败
The color of life divine
七夕看什么电影好?爬取电影评分并存入csv文件
随机码的生成
Embedded practice ---- based on RT1170 transplant memtester to do SDRAM test (25)
XSS靶机通关以及XSS介绍
Rotation of the displayed value on the button
Luogu P4588: [TJOI2018]数学计算
MM上街前的折腾(有趣)