Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/google-sheets/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 谷歌电子表格月、年汇总在11月停止_Sql_Google Sheets - Fatal编程技术网

Sql 谷歌电子表格月、年汇总在11月停止

Sql 谷歌电子表格月、年汇总在11月停止,sql,google-sheets,Sql,Google Sheets,我在谷歌电子表格中使用这个查询来汇总一年中每个月的某些任务。但是,聚合在第10个月(即11月和12月)之后停止,因此未对其进行分析。你知道我把事情搞砸了吗 =QUERY('Task Registration'!A:Z;"select month(A),year(A),sum(C),sum(D),sum(E),sum(F),sum(V),sum(W),sum(X),sum(Y),sum(Z),(sum(V)-sum(W)) where A is not null group by month(A)

我在谷歌电子表格中使用这个查询来汇总一年中每个月的某些任务。但是,聚合在第10个月(即11月和12月)之后停止,因此未对其进行分析。你知道我把事情搞砸了吗

=QUERY('Task Registration'!A:Z;"select month(A),year(A),sum(C),sum(D),sum(E),sum(F),sum(V),sum(W),sum(X),sum(Y),sum(Z),(sum(V)-sum(W)) where A is not null group by month(A),year(A)";2)
数据如下所示。电子表格有两个标题行

31-10-2014,stef,8,15,12,1,3,4,1,5,4,1,
斯特夫。 不知道这是否有用,但当在查询中使用月份时,“编号”会发生变化。我的意思是:一月的日期由月函数返回为零,十二月返回为“11”。 这就是为什么我总是使用monthA+1