I keep running into problems when I want to run a statement with a IN(SELECT statement. Here is an example of what I would like to do:
INSERT INTO MN_032803_DD ( ID, FName, LName, Street, City, State, ZIP, Phone, HValue )
SELECT MN_032803.ID, MN_032803.FName, MN_032803.LName, MN_032803.Street, MN_032803.City, MN_032803.State, MN_032803.ZIP, MN_032803.Phone, MN_032803.HValue
FROM MN_032803
WHERE MN_032803.Phone NOT IN(SELECT DNC_MN.Phone FROM DNC_MN);
I get an error MySQL Front that says this:
You have an error in your SQL syntax near 'SELECT DNC_MN.Phone FROM DNC_MN)' at line 1
I have also tried to Link the tables into Access and use Access as the front end but I get an ODBC error basically saying the same thing.
Doesn't MySQL support this? Do I need to update something? I am using the last 3.x stable release. The person who set this up did not want to use version 4.x since it was new.
Thanks,
Zych
INSERT INTO MN_032803_DD ( ID, FName, LName, Street, City, State, ZIP, Phone, HValue )
SELECT MN_032803.ID, MN_032803.FName, MN_032803.LName, MN_032803.Street, MN_032803.City, MN_032803.State, MN_032803.ZIP, MN_032803.Phone, MN_032803.HValue
FROM MN_032803
WHERE MN_032803.Phone NOT IN(SELECT DNC_MN.Phone FROM DNC_MN);
I get an error MySQL Front that says this:
You have an error in your SQL syntax near 'SELECT DNC_MN.Phone FROM DNC_MN)' at line 1
I have also tried to Link the tables into Access and use Access as the front end but I get an ODBC error basically saying the same thing.
Doesn't MySQL support this? Do I need to update something? I am using the last 3.x stable release. The person who set this up did not want to use version 4.x since it was new.
Thanks,
Zych