I'm migrating from Magento, and need the mySQL query to get all addresses associated with each customer.
this is how I get the address IDs, but not sure if customer_address_entity.parent_id is a customer id.
select
email, group_concat(a.entity_id)
from
customer_entity as c
inner join
customer_address_entity as a ON a.parent_id = c.entity_id
group by email
My Magento DB dump is from Magento 1.6.x
Can you propose a query for it?
I found it. Just check if in your database the
entity_idis the same as in my example.In my dump they are:
And here is the query which worked for me.