Hi, @winni, @wp!
Thank you for your answers. Yes, @wp, we did have a similar issue wit TZMSQL before, and it was solved, so I do not know exactly why is going wrong now. But my sample code is messy and I will have to check it entirely (including a check of all the connections as @winni pointed out).
@wp, your solution is beautiful, with a plot! Bit I need to stick to SQL queries because many other parts in the logic my application use and require them.
With best wishes,