Currently I have the following command:
SELECT * FROM `clients`
WHERE `ID`=(SELECT `clientID`
FROM `websites`
WHERE `name` LIKE "%my name%")
LIMIT 0,20
I wish to use an inner join, because AFAIK that is how it should be handled.
I have no idea how to do it… Here is all I could think of:
SELECT *
FROM `clients`
WHERE INNER JOIN `websites` ON `websites`.`name` LIKE "%lead%"
LIMIT 0,20
1 Answer