Jump to content

Required Mysql query to extract first order date for each customer


Recommended Posts

select c.id_customer AS ID, c.firstname as Firstname, c.lastname as Lastname, o.date_add as 'order date'  from ps_orders o INNER JOIN ps_customer c ON o.id_customer = c.id_customer  group by id

should work :-)

Link to comment
Share on other sites

×
×
  • Create New...