SELECT P_descript, p_price, v_name
From Vendor, Product
WHERE p_price > 6.99 AND Vendor.V_STATE IN ('TN')
Inner Join Vendor ON product.v_code = vendor.v_code
ORDER BY p_price DESC;
此内部联接在Oracle SQL Developer中不断加下划线。我不确定它有什么问题,但我觉得它是正确的。请帮帮我。
答案 0 :(得分:2)
您在声明中有两次供应商,首先在from语句中,然后在内部联接上。
试试这个:
SELECT P_descript, p_price, v_name
From Product
Inner Join Vendor ON Product.v_code = Vendor.v_code
WHERE p_price > 6.99 AND Vendor.V_STATE IN ('TN')
ORDER BY p_price DESC;