mysql - SQL: How to display the same item by group and the same group of the dates -


i'm new sql , need help. want display result this. want make "a:0:{}" not displayed , have dates in acsending order becuase dates messed up. how display result this?

result:

a:1:{s:1:"s";s:2:"aa";}              2014-08-12 a:2:{s:1:"s";s:2:"aa";}              2014-08-19 a:1:{s:1:"s";s:2:"aa";}              2014-08-19 a:3:{s:1:"s";s:2:"aa";}              2014-08-20 

sample sql data

site varchar(255) null default null, created datetime null default null,

column name site                     column name created  a:0:{}                               2014-08-18 a:0:{}                               2014-08-18 a:0:{}                               2014-08-18 a:0:{}                               2014-08-18 a:1:{s:1:"s";s:2:"aa";}              2014-08-19 a:2:{s:1:"s";s:2:"aa";}              2014-08-20 a:1:{s:1:"s";s:2:"aa";}              2014-08-19 a:3:{s:1:"s";s:2:"aa";}              2014-08-12 

use following mysql query. count need.

select count(site)  coming  group site , date(created) 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -