the query successfully counts the number of measurements per “device” over the course of 24 hours. Devices without any event in that time range will be omitted by the range() function and not show up in the result. I would like to show ALL devices (or devices with events anytime the last x days) with a count = 0. How is this possible?
I agree that the 3-table design is kinda messy, and that the onEmpty: "keep" will probably help somehow. Let’s wait for the Masters to chime in and see what they say.