I have a column named D1_VAL
The rows in this column have data that looks like this:
C:10
R:200
E:3
N:77
I’m trying to do a search on these values with a logical operator. I’ve tried this:
SELECT * FROM d1 WHERE CAST(`D1_VAL` AS UNSIGNED) > 5
It doesn’t return any rows. I’ve also tried:
SELECT * FROM d1 WHERE (0 + `D1_VAL`) > 5
How would I do this properly?
This query will do,
But its better to normalize the values like
C:10to two separate columns.