I have a query where I'm trying to match 1 table's primary key to field in another table that holds multiple entries. For example, the field may have 1 value in it, and allows this to work:
however sometimes the field has multiple id's separated by a comma. How would I join each domain with that same client?
Here's my full query:
Code:
LEFT JOIN client_list ON client_domain.dom_id = client_list.client_dom
Here's my full query:
Code:
SELECT * FROM client_domain LEFT JOIN client_company ON client_domain.dom_id = client_company.comp_dom LEFT JOIN client_list ON client_domain.dom_id LIKE client_list.client_dom WHERE client_domain.dom_del <> 1 AND client_company.comp_del <> 1 AND client_list.client_del <> 1