Select [Trader],[Reference] , [Type of Establishment], [Fruit Sold], [Stat Licence]
from Tablex
where [Type of Establishment]='D/03288'
and [Stat Licence]='Licenced'
Figure 1 - Sample results
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`
Now how do I get the result set below in Microsoft Access changing the sql view?
Figure 1 - What I want ?
Trader,Reference , Type of Establishment, Fruit Sold, Stat Licnece
Lady Daves Foxes, D/03288, Licenced, Bananas,Apples,Pear , Y_T_177
Suppose I need the pivot the Fruit sold column somehow ?