MissouriTiger
Programmer
I have a SQL query that keeps crashing my script. In Query Analyzer it returns 3152 identical rows (there is only one record in the DB that matches the criteria). In fact, just matching the idCustTemp alone will only return a handful.
What am I doing wrong?
My query is pasted below:
SELECT C.idCartRow, C.ItemDesc, C.quantity, C.unitPrice, P.idProduct, PD.Details
FROM cartRows C, products P, brands B, ProductDescriptions PD
WHERE C.idProduct = P.idProduct
AND PD.idProduct = P.idProduct
AND C.idSite = 7
AND C.Status = 0
AND C.idCustTemp = 11
All ideas/suggestions are welcome!
Greg Norris
Software Developer & all around swell guy
__________________________________________________
Constructed from 100% recycled electrons.
What am I doing wrong?
My query is pasted below:
SELECT C.idCartRow, C.ItemDesc, C.quantity, C.unitPrice, P.idProduct, PD.Details
FROM cartRows C, products P, brands B, ProductDescriptions PD
WHERE C.idProduct = P.idProduct
AND PD.idProduct = P.idProduct
AND C.idSite = 7
AND C.Status = 0
AND C.idCustTemp = 11
All ideas/suggestions are welcome!
Greg Norris
Software Developer & all around swell guy
__________________________________________________
Constructed from 100% recycled electrons.