southbeach
Programmer
I have two tables and the following query command:
I am getting the error
I can assure you that the columns exist. What am I doing wrong?
Thank you all in advance for your assistance!
Code:
SELECT a.*, b.*, SUM(pdQtyOnh) as qty FROM quickwr a, productsd b WHERE a.wrSysID = b.pdSysID AND a.wrAccountOfID = 3 AND a.wrDate >= "01/01/2000" AND a.wrDate <= "05/20/2008" AND a.wrStatus != "Q" AND EXISTS (SELECT * FROM productsd WHERE pdQtyOnh > 0 AND pdSysID = quickwr.wrSysID) AND a.wrBranch = "MIA"
I am getting the error
Code:
Unknown column 'quickwr.wrSysID' in 'where clause'
I can assure you that the columns exist. What am I doing wrong?
Thank you all in advance for your assistance!