Sign up to create your own snipts, or login.

Public snipts » robertbanh's snipts » count The latest count snipts from robertbanh.

showing 1-1 of 1 snipts for count
  • Count Monthly/Yearly Totals in MySQL
    SELECT 
          MONTHNAME(createDt) AS month,
          YEAR(createDt) AS year,
          COUNT(*) AS total
    FROM tracking
    GROUP BY MONTH(createDt), YEAR(createDt)
    ORDER BY id
    

    copy | embed

    0 comments - tagged in  posted by robertbanh on Jan 21, 2010 at 5:01 p.m. EST
Sign up to create your own snipts, or login.