I have a table with some dates intervals like this:
|id|group|date_start|date_end|
and I would like to make a view that looks like:
|id|working_days_diff|
and
|id|group|working_days_diff|
How may I do something like this? thanks
I was thinking about a custom function that will loop for each day in the difference and sum if DAYOFWEEK is not saturday and sunday.. but I don't know how to make...