SELECT COUNT(*)
FROM your_table
WHERE WEEKDAY(date_column) < 5
AND date_column BETWEEN '2022-01-01' AND '2022-01-31';
SELECT *
FROM your_table
WHERE WEEKDAY(date_column) = 0;
SELECT *
FROM your_table
ORDER BY WEEKDAY(date_column);
SELECT WEEKDAY(date_column) AS weekday, SUM(sales_amount) AS total_sales
FROM your_table
GROUP BY WEEKDAY(date_column);
SELECT AVG(sales_amount)
FROM your_table
WHERE WEEKDAY(date_column) < 5;