Group by Sku,合并数据

编程入门 行业动态 更新时间:2024-10-27 20:34:36
Group by Sku,合并数据 - 字符串聚合(Group By Sku, Merge Data - String Aggregation)

我想不出在访问中解决这个问题的最佳方法。 有一点需要注意。 大概还有15个其他领域,但它们都应该是重复数据,就像sku一样。

Original Sku | Category Apple | Fruit Apple | Consumable Need Sku | Category Apple | Fruit,Consumable

从下面评论的洞察后,我能够做到这一点

SELECT [rg test].PROD_CODE, DConcat("PRODREPGDE","[rg test]","[PROD_CODE] = '" & [PROD_CODE] & "'") AS [Reporting Group] FROM [rg test] GROUP BY [rg test].prod_code;

I can't think of the best way to tackle this in access. One thing to note. There are probably 15 other fields as well but they should all be duplicate data, just like sku.

Original Sku | Category Apple | Fruit Apple | Consumable Need Sku | Category Apple | Fruit,Consumable

After insight from comments below I was able to make this work

SELECT [rg test].PROD_CODE, DConcat("PRODREPGDE","[rg test]","[PROD_CODE] = '" & [PROD_CODE] & "'") AS [Reporting Group] FROM [rg test] GROUP BY [rg test].prod_code;

最满意答案

从下面评论的洞察后,我能够做到这一点

SELECT [rg test].PROD_CODE, DConcat("PRODREPGDE","[rg test]","[PROD_CODE] = '" & [PROD_CODE] & "'") AS [Reporting Group] FROM [rg test] GROUP BY [rg test].prod_code;

After insight from comments below I was able to make this work

SELECT [rg test].PROD_CODE, DConcat("PRODREPGDE","[rg test]","[PROD_CODE] = '" & [PROD_CODE] & "'") AS [Reporting Group] FROM [rg test] GROUP BY [rg test].prod_code;

更多推荐

本文发布于:2023-07-22 02:12:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1215997.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数据   Group   Sku

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!