Transact-SQL 参考

discounts

Column_name 数据类型 可为空 默认值 检查 键/索引
discounttype varchar(40)
stor_id char(4) 外键 stores(stor_id)
lowqty smallint
highqty smallint
discount float

  

discounttype stor_id lowqty highqty discount
Initial Customer NULL NULL NULL 10.5
Volume Discount NULL 100 1000 6.7
Customer Discount 8042 NULL NULL 5.0