dear all..i want to make some report which get data for one semester. this semester started at april and finished at september in each year. But for the second semester it will get data from october until march(next year). how do i do to make this grouping or aggregation? i'm just now the basic query like:
select * from dt_tb where `dt` >= DATE_SUB(CURDATE(), INTERVAL 6 MONTH)