SELECT
DATE_FORMAT(CURDATE(), '%Y%m'),
DATE_FORMAT(t.transactiontime, '%Y%m'),t.*
FROM
ttransactions t
where DATE_FORMAT(CURDATE(), '%Y%m')=
DATE_FORMAT(t.transactiontime, '%Y%m')

04-13 20:43