I've a column in MySQL database in this format:
{
"monday":[["11:00","19:30"]],
"tuesday":[["11:00","19:30"]],
"wednesday":[["11:00","19:30"]],
"thursday":[["11:00","19:30"]],
"friday":[["11:00","20:00"]],
"saturday":[["11:00","20:00"]],
"sunday":[["11:00","20:00"]]
}
Let's suppose that I would like to know if the restaurant is open now that is friday and is 14:00
how can I make this query? Is there a way?
I tried this query
SELECT id FROM table_name WHERE field_name REGEXP '"key_name":"([^"]*)key_word([^"]*)"';
But I would like to search first for day and then between hours. I'm not able to figure out how to solve it.