I have a MariaDB table including a JSON field:
{
arrayOfDates : ['2020-01-11', '2021-01, 12', '2019-03-12'],
...
}
For each record in my-table I need to extract the field arrayOfDates and pick the min value in the array.
Note I'm using MariaDB v 10.5.x so I cannot use JSON_TABLE.
How can I achieve this?
You can do it using a recursive CTE:
Demo here
see :