I read a table, do some filtering and the results are in an object called "row".
let row=[];
vs.forEach((r,i)=>{
if(dtv>=frv && dtv<=tov && id==r[0] && (r[12] == Suppliers[0] || r[12] == Suppliers[1] || r[12] == Suppliers[2])) {
row.push(r);
}
});
I am trying to write a query using ALASQL library in Google Apps Script.
var alasql = AlaSQLGS.load();
var res = alasql('SELECT A,B, SUM(C) FROM ? GROUP BY A,B',[row]);
I get the error "SyntaxError: Parse error" in the query line.
Any suggestions would be appreciated on how to resolve this.