How to join two tables mysql?

user345824 picture user345824 · Aug 21, 2010 · Viewed 80.1k times · Source

I have two tables:

services

  • id
  • client
  • service

and

clients

  • id
  • name
  • email

How to list table service and bring together the customer name that the customers table? field customer services in the table has the id of the customer at the customer table,

I appreciate the help from you now

Answer

GWW picture GWW · Aug 21, 2010
SELECT * FROM table1 LEFT JOIN table2 on table1.id = table2.id