SELECT year(NOW()) * 100 + month(now()) AS AktuellJahrMonat, jahr * 100 + monat AS JahrMonat FROM xxx HAVING AktuellJahrMonat > JahrMonat