MySQL: How To Show Month By Name, Not Number -


i trying show number of site leads per month. succeeding in of task, unable put finishing touches on it.

i need this...

i work looks this...

my code follows...

select concat(clients.first_name, " ", clients.last_name) name, count(leads.leads_id) total_leads, month(leads.registered_datetime) clients join sites on clients.client_id = sites.site_id join leads on sites.site_id = leads.site_id leads.registered_datetime between '2011-01-01' , '2011-06-31' group leads.registered_datetime 

i need month shown "january" , "february" rather "1" , "2". doing wrong?

you close, can use monthname function in same manner.

http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_monthname


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -