作者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://webptt.com/cn.aspx?n=bbs/Database/M.1543799131.A.586.html
1F:推 mathrew: 不懂题意 要解析什麽? 12/04 21:32
2F:推 SeanBoog: ???? 12/06 21:12
3F:→ dennisxkimo: 作业? 12/08 21:24
4F:→ Neroth: 可以试试画ERD, 把B1 B2 C1的PK-FK串起来 12/18 18:58