在名为商品库的数据库中包含有商品规格表Content和商品特性表Property,它们的定义分别为:
Content(Code Char(10),Class Char(8),Price Float,Number Int)
Property(Code Char(10),Place Char(12),Brand Char(15))
(1)写出下面查询语句的作用;
Select Distinct Brand From Property
(2)从商品库中查询出每类商品的最高单价
(3) 从商品库中查询出同一类商品多于一种的所有分类名
1. 在 Property表中 查询 无重复的Brand字段信息
2. SELECT Class,max(Price) FROM Content GROUP BY Class
3. SELECT Class FROM Content GROUP BY Class HAVING count(Class)>1