What's wrong with this SQL query doubling the boundary row?

What's wrong with this SQL query doubling the boundary row in a report. The SQL code uses BETWEEN for a date range. In SQL BETWEEN is inclusive on both ends so the boundary gets counted twice if used in a join.

#whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sq...

https://www.youtube.com/watch?v=DuZMlxodwwo

Whats wrong with this SQL query doubling the boundary row? #sqldoublecount

YouTube