学生-课程关系数据库

学生-课程关系数据库,第1张

1、select C# from SC where S#='040011'

2、select S#, SN from S where S# in (select S# from SC where G >= 80 and C# in (select C# from C where CN = '数据库概论'))

3、select S#, count(*), avg(G) from SC group by S# having count(*) >2

1 select * from S

2 select sname, 2014-Sage from S

3 select sname, sage from S where sage between 20 and 22

4 select * from S order by sdept asc, sage desc

5 select S.sno, sname from S, C, SC where S.sno=SC.sno and SC.cno=C.cno and Cname='数据库


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/6806367.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-28
下一篇 2023-03-28

发表评论

登录后才能评论

评论列表(0条)

保存