Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 matillion etl 中分别计算两个项目名称(menlo park 和 SFO-BAB)的运行总数我已经计算了两个项目名称的运行总数,但我需要单独计算。我添加了截图以供参考。
我假设您要计算每个 projectName 的 UnitsConsumed 列的运行总计:
Select projectName, UnitsConsumed, SUM(UnitsConsumed) over (partition by projectName order by reportingFromDate) FROM waterConsumption
如果您只想查看 Menlo Park 或 SFO-BAB,则必须相应地过滤您的结果。