Cara saya memahaminya, jika Inserted_Date = Jan 2013
dan Frequency = 'Halfyearly'
, lalu Eligibility = 1
saat bulan berjalan Jan 2013, Jul 2013, Jan 2014, Jul 2014 etc..
UPDATE TableA
SET Eligibility = CASE WHEN (Frequency = 'Halfyearly'
AND MONTH(Inserted_Date) % 6 = MONTH(NOW()) % 6)
OR (Frequency = 'Quarterly'
AND MONTH(Inserted_Date) % 3 = MONTH(NOW()) % 3)
THEN 'Yes'
ELSE 'No'
END
Jika Anda memiliki Tahunan juga, Anda dapat memeriksa
MONTH(Inserted_Date) = MONTH(NOW())
Lihat ini berfungsi di SQLFiddle