I have a column with type string, and we saved all sizes and prices in this field it is separated by pipeline and semicolon sign as shown below
10;100|11;111|12;112|13;130|14;130|15;105
I want to get the minimum price in this field (price;size where 10 is size and 1502 is price).
I used this query but it returns only one of them and not the minimum
select SUBSTRING_INDEX((textColumn), '|', 1) as sizeAndprice from myTable;