4 ms·
Hey Jeff! Isn't it also incorrect because WHERE DATE_TRUNC('year', o.ts) = '2019-01-01'::timestamptz will filter out customers without orders even before th
by uhoh-itsmaciek 7y ago
Hey Jeff! Isn't it also incorrect because
WHERE DATE_TRUNC('year', o.ts) = '2019-01-01'::timestamptz
will filter out customers without orders even before the HAVING (because DATE_TRUNC of NULL is NULL)? I mean, I guess you're still demonstrating the perils of NULL with that ;)
- jeffdavis 7y agoAh, you got me!