当前位置:网站首页>Two-table query average grouping in sql server
Two-table query average grouping in sql server
2022-08-05 09:05:00 【CSDN Q&A】

How to ask 35 36
--35: Query the average grade of each course, and ask to list the course name and average grade.
select Course.Cname,AVG(SC.Grade) from Course,SC where SC.Cno=Course.Cno group by Course.Cname,SC.Grade
--36: Query the total score of each student, and ask to list the student's name and total score.
select Student.Sname,sum(SC.Grade) from Student,SC where SC.Sno=Student.Sno group by SC.Grade,Student.Sname
边栏推荐
猜你喜欢

Undefined symbols for architecture arm64解决方案

Assembly language (8) x86 inline assembly

【LeetCode】623. 在二叉树中增加一行

MySQL内部函数介绍

基于 Kubernetes 的微服务项目整体设计与实现

ECCV 2022 Oral 视频实例分割新SOTA:SeqFormer&IDOL及CVPR 2022 视频实例分割竞赛冠军方案...

CVPR 2022 | 将X光图片用于垃圾分割,港中大(深圳)探索大规模智能垃圾分类

15.1.1、md—md的基础语法,快速的写文本备忘录

Why do I recommend using smart async?

There is only one switch, how to realize the nqa of master-slave automatic switching
随机推荐
我的杂记链接
周报2022-8-4
Hbuilder 学习使用中的一些记录
seata源码解析:事务状态及全局锁的存储
Embedded practice ---- based on RT1170 transplant memtester to do SDRAM test (25)
What is a good movie to watch on Qixi Festival?Crawl movie ratings and save to csv file
Luogu: P2574 XOR的艺术 [线段树]
openpyxl操作Excel文件
Assembly language (8) x86 inline assembly
施一公:科学需要想象,想象来自阅读
Comprehensively explain what is the essential difference between GET and POST requests?Turns out I always misunderstood
Walk 100 trick society
ts/js 函数传参带函数写法
科普大佬说 | 港大黄凯斌老师带你解锁黑客帝国与6G的关系
使用HBuilder离线本地打包ipa教程
NC20164 :最大数MAXNUMBER [线段树]
随时牵手 不要随意分手[转帖]
工程制图试题
按钮上显示值的轮流切换
Does flink cdc support synchronization from oracle dg library?