我创建了3个表请问这个功能怎么用SQL写出来

shadowdudu shadowdudu 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
use xscj
--create table xs
--( 学号 char(6) not null primary key,
-- 姓名 char(8) not null,
-- 课程名 char(6) not null,
-- 性别 BIT not NULL,
-- 出生时间 smalldatetime not null,
--)
--use xscj
--create table kc
--(课程号 char(6) not null primary key,
--课程名 char(6) not null,
--开课学期 int not null,
--学时 int not null,
--学分 int not null,)
--use xscj
--create table xs_kc
--(学号 char(6) not null primary key(学号,课程号),
--课程号 char(10) not null,
--选课信息 char(10) not null,
--)
自定义存储过程,参数为@num int,@semes char(12),@score int ,分别表示课程数目、开课季节、分数:
实现查询@Semes季节,@num门课程在@score分以上的学生学号和姓名以及
这些课程的平均分。
谢谢了
...全文

相关推荐

评论 2
收藏 已收藏
分享
返回顶部
shadowdudu
MS-SQL Server 34,877 成员 254,635 内容