Chung WONG
12/05/2025, 12:09 AMSELECT count(*)
FROM sales
WHERE created_at >='2021-02-01T00:00:00'
-- vv 21st of Feb
AND created_at <='2025-02-21T00:00:00';
+----------+
| count(*) |
+----------+
| 24176 |
+----------+
SELECT count(*)
FROM sales
WHERE created_at >='2021-02-01T00:00:00'
-- vv 30th of Feb which doesn't exist
AND created_at <='2025-02-30T00:00:00';
+----------+
| count(*) |
+----------+
| 0 |
+----------+
With the invalid timestamp, it doesn't return anything anymore.Евгений Шишкин
12/05/2025, 5:53 AMChung WONG
12/07/2025, 9:45 PMset forbid_invalid_date=1; and it didn't work.Chung WONG
12/07/2025, 9:49 PMpipes_as_concat,no_engine_substitutionЕвгений Шишкин
12/07/2025, 9:58 PM