Hello there,
I am now taking the php script that was filtering and changing it all over to sql and no php in it, I have it working except this part
I am trying to have this part insert the remaining records that are still in the table irs_rawdata and have only the EIN put in and also a string, any help would be great, I also want to thank you all that do help for helping as its because of you guys that I am able to move along with the project for the non-profit
I have the following code:
INSERT INTO block (fin, who_blocked) VALUES (irs_rawdata.EIN, 'S-123456789')
WHERE NOT EXISTS
(
SELECT * FROM irs_rawdata
PNO LIKE '%blind%' OR
PNO LIKE '%deaf%' OR
NTEE_Code LIKE '%P87%'
);
I have done it with using * in the select and also with EIN as this is the only field need to be inserted into the block table,
what am I doing wrong as its saying that there is a error near the WHERE NOT EXISTS clause?
Thanks for any help!
Sincerely,
Christopher