mysql - GROUP BY each 6 months in one record -


i having trouble retrieving data db through select query such:

select table.something table table.date between 'from' , 'to' group (each 6 months between , date). 

any idea how can done without having recur view , external grouping through code.

something work:

select      table.something,      ceil(month(date)/6) monthvalue       table       table.date between 'from' , 'to'  group      monthvalue 

Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -