How do I find the number of fridays between two dates(including both the dates) using a select statement in oracle sql?
select ((DATEDIFF(dd,@a,@b)) + DATEPART(dw,(@a-6)))/7