作者Yudii (Hank)
看板Database
標題[SQL ] SQL語法求解析
時間Mon Dec 3 09:05:29 2018
資料庫名稱: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;
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 39.12.0.17
※ 文章網址: https://www.ptt.cc/bbs/Database/M.1543799131.A.586.html
推 mathrew: 不懂題意 要解析什麼? 12/04 21:32
推 SeanBoog: ???? 12/06 21:12
→ dennisxkimo: 作業? 12/08 21:24
→ Neroth: 可以試試畫ERD, 把B1 B2 C1的PK-FK串起來 12/18 18:58