作者:
Yudii (Yudi)
2018-12-03 09:05:29資料庫名稱:MySQL
內容/問題描述:
請寫一遍下列SQL語法,並試著解析一遍。
select C2.store_name Store, C1.product_name Product,
C2.price Price from product C1, (select B1.store_name,
B2.product_id, B2.price from store B1, (Select * from
store_sale_product) B2 where B1.store_id=B2.store_id)
C2 where C1.product_id=C2.product_id;
作者: Neroth 2018-12-18 18:58:00
可以試試畫ERD, 把B1 B2 C1的PK-FK串起來