edsmiths Posted January 2, 2015 Share Posted January 2, 2015 Hello all., happy new year, I need help in the sql manager. I'm trying to retrieve from ps database a list of customers (name, email and country) with the language used in the registration process. Is this possible? Thanks in advance. Ed Link to comment Share on other sites More sharing options...
tuk66 Posted January 5, 2015 Share Posted January 5, 2015 SELECT c.lastname, c.firstname, c.email, l.name FROM ps_customer c LEFT OUTER JOIN ps_lang l ON l.id_lang = c.id_lang Only country is ambiguous, because customers can have many different addresses. Link to comment Share on other sites More sharing options...
edsmiths Posted January 6, 2015 Author Share Posted January 6, 2015 Great!, Thanks mate Link to comment Share on other sites More sharing options...
Recommended Posts