I have a MySQL database with a table called users. This table has some columns. In a column called actions there are JSON objects stored. For example:
{
"name": "joe",
"tasks": [
{
"id": "1",
"type": "wait",
"value": "s*2*c"
},
{
"id": "2",
"type": "run",
"value": "a*c*47I*x"
}
]
}
My aim is to retrieve all the rows that contain JSON objects with a type "run" and which value contains more than one asterisk symbol *. Is this possible considering that the array tasks can have multiple objects in different orders?