某学生管理系统的数据库有如下三个关系:学生(学号,姓名,性别,院系编号)课程(课程号,课程名,学分)选修(学号,课程号,成绩)实现下列操作:使用SQL语句查询每个院系的院系编号、性别及相应性别的人数。
SELECT 院系编号,性别, COUNT(*) AS '人数' FROM 学生 GROUP BY 院系编号,性别;
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/235583.html
上一篇:It was a great shock to me to discover that I had motor neuron disease. I had never been very well co-coordinated physically as a child. I was not good at ball games, and my handwriting was the despair of my teachers. Maybe for this reason, I didn't
下一篇:个人不愿意因为与众不同而感到孤立,从而放弃自己意见的“随大流”行为属于( )