0

I want to build a sql query for customer. Information needed:

  • customer-email
  • customer-type (individual user, company admin,
    company user)

Can you help me to build such a query?

BR

asked Jul 14, 2022 at 11:26
2
  • Which Magento version? Commented Jul 14, 2022 at 11:47
  • Take a look at customer_entity table Commented Jul 14, 2022 at 15:58

1 Answer 1

0

SELECT email, customer_type

FROM customer_entity

WHERE email = '[email protected]'

AND (customer_type = 'individual' OR customer_type = 'company_admin' OR customer_type = 'company_user');

answered May 26, 2023 at 2:51

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.