alex57
01-28-2007, 04:21 PM
Hello,
I need to run a query which uses a like query like the one below, no problem:
SELECT * FROM footballers WHERE sname LIKE '%$criteria%'
however, if I want to join two tables and still use the LIKE clause how would the syntax look??
My guess below was incorrect. any help would be appreciated. thank you
WHERE sname LIKE '%$criteria%' AND (footballers.footballerID = PremTeams.footballerID)
I need to run a query which uses a like query like the one below, no problem:
SELECT * FROM footballers WHERE sname LIKE '%$criteria%'
however, if I want to join two tables and still use the LIKE clause how would the syntax look??
My guess below was incorrect. any help would be appreciated. thank you
WHERE sname LIKE '%$criteria%' AND (footballers.footballerID = PremTeams.footballerID)