Versand für einige Postleitzahlen sperren

Vielen Dank!

Aber wenn ich es wie folgt einpflege funktioniert es leider nicht!

IFNULL(us.zipcode,ub.zipcode) IS NULL
OR
IFNULL(us.zipcode,ub.zipcode) NOT IN (‘35230’, ‘35217’, ‘35450’, ‘35017’, ‘35018’, ‘35001’, ‘35002’, ‘35003’, ‘35004’, ‘35005’, ‘35006’, ‘35007’, ‘35008’, ‘35009’, ‘35010’, ‘35011’, ‘35012’,‘35013’, ‘35014’, ‘35015’, ‘35016’, ‘35017’, ‘35018’, ‘35019’, ‘35070’, ‘35071’, ‘35220’, ‘35229’, ‘35217’, ‘38000’)
OR
IFNULL(us.zipcode,ub.zipcode) > ‘38000’
AND IFNULL(us.zipcode,ub.zipcode) < ‘38999’
AND IFNULL(us.countryID,ub.countryID) = 27

Das Problem stellt sich nur bei der NOT IN Variante. Wo mache ich denn den Fehler ? :frowning: