How to split the name string in mysql ?
E.g.:
name ----- Sachin ramesh tendulkar Rahul dravid
Split the name like firstname
firstname
select (case when locate('(', LocationName) = 0 then horse_name else left(LocationName, locate('(', LocationName) - 1) end) as Country from tblcountry;