我有 2 表产品和品牌。
Products
+------------+-------------------------------------+------------+-------+
| product_id | title | brand_name | price |
+------------+-------------------------------------+------------+-------+
| 1 | Pacific Evolution 26" Mountain Bike | Pacific | 100 |
+------------+-------------------------------------+------------+-------+
| 2 | Schwinn Riverside Cruiser | Schwinn | 200 |
+------------+-------------------------------------+------------+-------+
Brands
+-----------+-------------+----------+
| brand_id | brand_name | discount |
+-----------+-------------+----------+
| 22 | Schwinn | 10 |
+-----------+-------------+----------+
如果品牌有折扣,产品的价格会发生变化。(在我的表格示例中,Schwinn 品牌有 10% 的折扣)
在我的情况下,如何按价格升序输出产品列表?