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')
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')