I want to do a query to filter where date > "select the last 10 weekdays from getdate()" so I can get data older than the last 10 "working days" when working day means is not a Saturday or Sunday.
so for example if today is '11 Jun 2022' I want to do a
select * from table where date <= '27 Jun 2022'
I've tried with the datepart(dw, getdate) > 10
but I'm not getting it to work