Forum Moderators: coopster
SELECT a.quantity, a.delivered, p.productname, z.quantity as deld , z.tf
FROM actualorderdetails AS a, products AS p, delnotes AS d, deldetails AS z
WHERE
d.delnoteid = 2
AND a.orderid = d.orderid
AND a.productid = p.productid
AND z.delnoteid = d.delnoteid
i expect 4 lines to be returned
but instead i get 16, with 4 of each row.
Why?