IF a Contains b OR b Contains a Then Return true.
SELECT c1 FROM table WHERE INSTR(CAST(c2 as UNSIGNED),CAST(c3 as UNSIGNED)) OR INSTR(CAST(c3 as UNSIGNED),CAST(c2 as UNSIGNED));
select Case When (a=b or b=a) then 1 else 0 End from Table_Name
N:B-I'm not familiar with MySql :)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)