Why does this SQL aggregate undercount?

Why does this SQL aggregate undercount in production. The SQL code groups by a rounded timestamp, collapsing multiple events into one bucket. In SQL analytics this undercounts traffic.

#whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqldataintegrity #sqlengineering #sqlaggregatebug #sqlgroupby #sqlreporting #sqlda...

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

Why does this SQL aggregate undercount? #sqlcodereview

YouTube

Why does this SQL INSERT create duplicate IDs after rollback?

Why does this SQL INSERT create duplicate IDs after rollback. The SQL code relies on sequential auto increment. In MySQL rollback consumes the value and the next insert gets a gap. In SQL systems expecting contiguous IDs this breaks logic.

#whatswrongwiththissqlquery #sqlbug #sqlproductionbug #sqldebugging #sqldatabase #sqlcodereview #sqlperformance #sqlreliability #sqlanalytics #sqlda...

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

Why does this SQL INSERT create duplicate IDs after rollback? #sqlengineering

YouTube