How to join two tables mysql?

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


Solution 1:

SELECT * FROM table1 LEFT JOIN table2 on table1.id = table2.id

Solution 2:

SELECT ...
FROM services AS s
JOIN clients AS c
  ON s.client = c.id
WHERE ...

Solution 3:

SELECT ...
FROM services AS s
INNER JOIN clients AS c
  ON s.client=c.id