标记题目
题干
从商品库中查询出比所有空调器的单价都高的每种商品。 select * from 商品表1
where 单价>all(select 单价 from 商品表1
where 分类名='空调器') 或 select * from 商品表1 where 单价>all(select max(单价) from 商品表1 where 分类名='空调器'
题目29
完成
满分4.00
标记题目
题干
从商品库中查询出同一类商品多于一种的所有分类名。 select distinct 分类名 from 商品表1 group by 分类名 having count(*)>1
题目30
完成
满分4.00
标记题目
题干
从商品库中查询出每种商品的总价值,并按降序排列出来。 select *,单价*数量 as 总价值 from 商品表1 order by 总价值 desc