WEEKDAY function to get the day index for each submit_date.SUM to count the number of tasks submitted on weekends (where WEEKDAY(submit_date) is 5 or 6).WEEKDAY(submit_date) is between 0 and 4).weekend_cnt and working_cnt respectively.erDiagram
Tasks {
int task_id PK
int assignee_id
date submit_date
}