Answer the question
In order to leave comments, you need to log in
Can I do a database search?
I have a database with 3 tables.
Orders:
Companies
Customers
Using JOIN I connect them
SELECT * FROM `orders` LEFT JOIN companies ON orders.company_id=companies.id LEFT JOIN clients on orders.client_id=clients.id WHERE companies.id=clients.company_id
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question