0

I have a query where I want to view names of carparks (cp_name) that are near the iona building (nearbyFacilities). The query works without the last line but it displays all carparks. Any idea how to just get the results related to the word iona?

SELECT CP_Name.Name, CP_Location.nearbyFacilities
FROM CP_Name
INNER JOIN CP_Location 
ON CP_Name.CarparkID = CP_Location.CarparkID 
WHERE nearbyFacilities LIKE `%iona%`  -- this line doesn't work
Galma88
  • 2,398
  • 6
  • 29
  • 50
sarahjane
  • 3
  • 1
  • 2

0 Answers0