SELECT id, u.name, email, mail, c.user_id, c.default_address
FROM user_view u
LEFT JOIN customer_view c
ON u.id = c.user_id
SELECT a.id, a.consignee, p.name province, a.zip_code, a.city, a.name, a.active, c.Pais country
FROM address_view a
LEFT JOIN vn2008.province p ON a.province_id = p.province_id
JOIN vn2008.Paises c ON c.Id = p.Paises_Id
WHERE active != FALSE
Configuration