hackypro Posted November 10, 2008 Share Posted November 10, 2008 SELECT Continent, Region, COUNT(*) FROM Country WHERE Region LIKE '%Continent%' GROUP BY Continent, Region; is what i have. basically i need to return regions where the continent name is inside the region name. apparently need to use a MYSQL function here but i'm stumped Quote Link to comment https://forums.phpfreaks.com/topic/132192-solved-return-a-name-containing-a-string-from-table/ Share on other sites More sharing options...
Barand Posted November 10, 2008 Share Posted November 10, 2008 WHERE INSTR(region, continent) Quote Link to comment https://forums.phpfreaks.com/topic/132192-solved-return-a-name-containing-a-string-from-table/#findComment-687073 Share on other sites More sharing options...
hackypro Posted November 13, 2008 Author Share Posted November 13, 2008 AWESOME I LOVE YOU Quote Link to comment https://forums.phpfreaks.com/topic/132192-solved-return-a-name-containing-a-string-from-table/#findComment-689027 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.