I have 2 query. first is
SELECT CASE WHEN WEEKDAY('2017-03-01') <= 5 THEN 5 -
WEEKDAY('2017-03-01') ELSE 0 END + CASE WHEN WEEKDAY('2017-03-03') <= 5 THEN
WEEKDAY('2017-03-03') + 1 ELSE 5 END + (DATEDIFF('2017-03-03',
'2017-03-01') + 1 - (7 - WEEKDAY('2017-03-01')) - (WEEKDAY('2017-03-03') +
1)) DIV 7 * 5 AS w_d
an output of that query is
w_k
3
and the 2nd one is
SELECT count(*) FROM attendence WHERE eid=1 and login < ('2017-03-03' + interval 1 day ) AND login >= '2017-03-01' .
an output of that query count(*)
3
and I want to subtract query1 - 2.