I need to create a SSIS package that will go through the records in one table(T1) older than 3 months (based on ALERT_TIMESTAMP) a
table(T1)
ALERT_TIMESTAMP
What you posted is not MySQL. Assuming you are using MS SQL Server, you should use the ABS() function.
ABS()
SELECT * FROM T1 WHERE ABS(DATEDIFF([month], ALERT_TIMESTAMP, GETDATE())) > 3