📄️ QuestDB Balance Query
This page documents the QuestDB SQL query used to compute the medical fluid balance over a given time window. The query is structured as a series of Common Table Expressions (CTEs), each building on the previous one. The sections below walk through each CTE in order.