I have a text column ( MISCDATA
) in a database wich contains multiple numeric values and string values, separated by comas and semicolons. Is there a way to build a query to select only the rows where MISCDATA
contains a number bigger than 50 (example)?
I thought of the use of FIND_IN_SET() but I can't place it in the correct context.
SELECT * FROM Mytable WHERE FIND_IN_SET('NUMBER BIGGER THAN 50', MISCDATA);
I don't know if I explained myself correctly, anyhow all help will be apreciated. Thanks.
EDIT:
Some example data from the field:
MA, 22; HR, 42; HG, 29; JW, 44; MI, 76; GJ, 56;
The above example should be listed by the SELECT because it contains 2 numbers bigger than 50 (MI and GJ).