好。所以这就是我想要做的。
products_description:
products_name | products_id
products_to_categories:
products_id | categories_id
categories_description:
categories_id | categories_name
基本上我想得到products_name,其中categories_name等于'Refurbished'(产生多行)。任何帮助将不胜感激。
答案 0 :(得分:0)
SELECT p.product_names
FROM products_description p, products_to_categories pc, categories_description c
WHERE p.products_id = pc.products_id
AND pc.categories_id = c.categories_id
AND c.categories_name = "Refurbished"