数据库练习题

第一题:select a.gname ,b.gprice from goods a join (select gno from goods where gprice>30) b on b.gno=a.gno where gname =’%商%’ or gname = ‘s%’ or gname=‘F%’第二题select sdate from goods join sc on goods.gno=sc.gno where a.gprice*b.amount order by sc..
摘要由CSDN通过智能技术生成

在这里插入图片描述
第一题:
select a.gname ,b.gprice from goods a join (select gno from goods where gprice>30) b on b.gno=a.gno where gname =’%商%’ or gname = ‘s%’ or gname=‘F%’
第二题
select sdate from goods join sc on goods.gno=sc.gno where a.gprice*b.amount order by sc.uno desc limit 100
数据库

在这里插入图片描述
1 select * from employee where between 100 and 200( 包括边界值)
2 select * from employee where name like ‘王%’
3 select team_id, count(id) from employee group by team_id
4 select a.id,a.name,b.team_id,b.‘人数’ from employee a inner join (select team_id,count(id) as ‘人数’ from employee group by team_id ) b on a.team_id = b.team_id

在这里插入图片描述

  1. select name from score where group
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值