sql3.35——3.49



3.35

select *

from course

where cname like'DB\_%i__'ESCAPE

3.36

select sno,cno

from sc

where grade is NUll;

3.37

select sno,cno

from sc

where grade is not null;

3.38

select sname

from student

where sdept='cs' andsage<20;

select sname,ssex

from student

where sdept='cs' orsdept='ma' or sdept='is';

3.39

select sno,grade

from sc

where cno='3'

order by gradedesc;

3.40

select *

from student

order by sdept,sage desc;

3.41

select COUNT(*)

from student;

3.42

select COUNT(distinct sno)

from sc;

3.43

select AVG(all grade)

from sc

where cno='1';

3.44

select max(grade)

from sc

where cno='1';

3.45

select sum(ccredit)

from sc,course

where sno='201215012' and sc.cno=course.cno;

3.46

select cno,COUNT(sno)

from sc

group by cno;

3.47

select sno

from sc

group by sno

having COUNT(*)>3;

3.48

select sno,AVG(grade)

from sc

group by sno

having avg(grade)>=90;

3.49

select student.*,sc.*

from student,sc

where student.sno=sc.sno;

select *

from student,sc

where student.sno=sc.sno;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值