Select [Trader],[Reference] , [Type of Establishment], [Fruit Sold], [Stat Licence]
from Tablex
where [Type of Establishment]='D/03288'
and [Stat Licence]='Licenced'
图1 - 样本结果
Trader,Reference , Type of Establishment, Fruit Sold, Stat Licnece
Lady Daves Foxes, D/03288, Licenced, Bananas , Y_T_177
Lady Daves Foxes, D/03288, Licenced, Apples , Y_T_177`
Lady Daves Foxes, D/03288, Licenced, Pears , Y_T_177`
现在如何在Microsoft Access中更改sql视图获取下面的结果集?
图1 - 我想要什么?
Trader,Reference , Type of Establishment, Fruit Sold, Stat Licnece
Lady Daves Foxes, D/03288, Licenced, Bananas,Apples,Pear , Y_T_177
假设我需要以某种方式销售Fruit sold柱?
答案 0 :(得分:1)
您正在寻找group_concat,但这在Access中不存在。
尽管如此,之前已经讨论过这些解决方法。
E.g。 is there a group_concat function in ms-access?
希望这会有所帮助 [R