Why does this SQL partition skip data?

Why does this SQL partition skip data in reporting. The SQL query filters on a partition boundary with the wrong timezone, so rows land in the wrong partition. In SQL analytics this miscounts totals.

#whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlpartition #sqltimezonebug #sqlr...

https://www.youtube.com/watch?v=8Yw6CZspyrM

Why does this SQL partition skip data? #sqlproductionbug

YouTube

What's wrong with this SQL time zone filter?

What's wrong with this SQL time zone filter in reporting. The SQL code compares a local time to UTC stored timestamps, so boundaries shift by hours. In SQL analytics this miscounts events.

#whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqltimezonebug #sqldatetime #sqlreporti...

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

Whats wrong with this SQL time zone filter? #sqldatetime

YouTube