The query works, but I was asked to rewrite it in join operator style.
SELECT pr.ProdName, pr.ProdPrice
FROM Product pr, OrderTbl ord, OrdLine ol, Customer cu
WHERE pr.ProdNo=ol.ProdNo
AND ord.OrdNo=ol.OrdNo
AND cu.CustNo=ord.CustNo
AND cu.CustNo='C2388597'
AND ord.OrdDate BETWEEN '01-Jan-04' AND '31-Jan-04';
I’ve just started out using Oracle, so I’m not sure how. I think I should be using INNER JOINS, but I don’t know exactly how. Could someone help me, please?
You should definitly read about joins though, but here is how this cross join style can be converted to inner join