我有一个包含时间序列数据的数据表。如何编写查询以将选定系列的每日数据添加到一起?
我的表看起来像这样......
我想根据列表返回数组(dY),例如{ “A”, “C”}。例如给出每天的Y值(A + C)...... dY = {4,7,8}
我已经设法用SQL编写查询
SELECT Sum(myTable.Y) AS [Total Of Y]
FROM AAAA
WHERE (((myTable.Series) In (1,3)))
GROUP BY myTable.X;
我想在LINQ(VB.NET)
中应该是这样的Dim mySeries = {1, 3}
Dim Ys = (From myrows In oSubData Where mySeries.Contains(myrows("Series")) Select mycol = Sum(Val(myrows("Y"))))