We need to get the row, which has value in cmts
greater than given value(4000)
, below is our example table structure
id cmts
1 1000,2000,3000,4000
2 1100,2200,3300,4400
Output should be the 2nd row(ID 2).
We need to get the row, which has value in cmts
greater than given value(4000)
, below is our example table structure
id cmts
1 1000,2000,3000,4000
2 1100,2200,3300,4400
Output should be the 2nd row(ID 2).
SELECT *
FROM cmts
WHERE CONVERT(SUBSTR(cmts, SUBSTRING_INDEX(cmts,',',-1), LEN(cmts)), ,UNSIGNED INTEGER)>4000