你能帮我做这个吗:请看下面的图片
答案1
既然你提到你现在有ConcatRelated() 函数,您可以使用此查询,它只是Discount
对所有行的列求和,并用于ConcatRelated
连接Reason
所有行的值:
SELECT Sum(Discount) AS Total_Discounts
, ConcatRelated("Reason", "Table1") AS The_Reasons
FROM Table1;
如果您希望查询Table2
从第二张屏幕截图创建表,只需添加一个INTO
子句:
SELECT Sum(Discount) AS Total_Discounts
, ConcatRelated("Reason","Table1") AS The_Reasons
INTO Table2
FROM Table1;