当前位置:网站首页>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
边栏推荐
- 版本号命名规则
- k-nearest neighbor fault monitoring based on multi-block information extraction and Mahalanobis distance
- 【无标题】长期招聘硬件工程师-深圳宝安
- 复现一次循环和两次循环
- Luogu P1966: [NOIP2013 提高组] 火柴排队 [树状数组+逆序对]
- The Coolest Kubernetes Network Solution Cilium Getting Started Tutorial
- Data source object management Druid and c3p0
- Embedded practice ---- based on RT1170 transplant memtester to do SDRAM test (25)
- nn.unfold和nn.fold
- 微信小程序请求封装
猜你喜欢
随机推荐
Code Audit - PHP
链表专项之环形链表
Iptables implementation under the network limited (NTP) synchronization time custom port
How to replace colors in ps, self-study ps software photoshop2022, replace one color of a picture in ps with another color
What is a good movie to watch on Qixi Festival?Crawl movie ratings and save to csv file
RedisTemplate: 报错template not initialized; call afterPropertiesSet() before using it
手机上流行的各类谜语
MySQL 数据库 报错 The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid)
SQL SERVER on master-slave table trigger design
最 Cool 的 Kubernetes 网络方案 Cilium 入门教程
The Secrets of the Six-Year Team Leader | The Eight Most Important Soft Skills of Programmers
工程制图试题
DataFrame insert row and column at specified position
[Untitled] Long-term recruitment of hardware engineers-Shenzhen Baoan
Nn. Unfold and nn. The fold
ts/js 函数传参带函数写法
ts/js function pass parameter with function writing
Version number naming convention
Pagoda measurement - building small and medium-sized homestay hotel management source code
Controlling number and letter input in ASP









