I have this script, after i run the script in sql,
I have this script, after i run the script in sql, i am getting a
result saying that there are “no rows selected” that is not right. Please review and let me know why there are no rows selected. There should be rows selected. Question is below. Attached is the data. I need this ASAP. Thank you.
. For each Connex product compute the number of unique customers who ordered the product in Jan 2007. The results should include the product number, product name and the number of unique customers. Show results in the order of product name.
SELECT p.ProdNo, p.ProdName, COUNT(*) as “Number of Unique Customers”
FROM Product p, Customer c, Orders o, Order_Line ol
WHERE c.CustNo = o.CustNo AND p.ProdNo = ol.ProdNo AND o.OrdNo = ol.OrdNo AND
UPPER(p.ProdMfg) LIKE ‘CONNEX’ AND UPPER(substr(o.OrdDate, INSTR(o.OrdDate, ‘-‘) + 1)) LIKE ‘JAN-2007’
GROUP BY p.ProdName, p.ProdNo
ORDER BY p.ProdName;