多个Googlesheet按日期查询

Multiple Google sheet Querying by date

我有多个 sheet。我想通过日期查询从这些 sheet 中获取数据。

我想要结果 sheet 如下

尝试:

=QUERY({Sheet1!A3:B; Sheet2!A3:B}; 
 "select Col1,sum(Col2) 
  where Col1 is not null
  group by Col1 
  label sum(Col2)''")