JohnDeee
JohnDeee

Reputation: 1

Merging multiple rows with same value

I need to transform the table on the left into into the format of the table on the right. The original table is in MS Access and I am struggling with this problem.

I found many examples where this was done with min/max aggregated function, but since there are multiple rows for each value, this does not work.

img

Upvotes: 0

Views: 57

Answers (2)

Lee Mac
Lee Mac

Reputation: 16015

Your tables don't appear to be consistent -

For example, the six original values associated with Type A (highlighted in yellow in the left-hand table below), become six different values (as highlighted in yellow in the right-hand table):

enter image description here

Upvotes: 1

ashleedawg
ashleedawg

Reputation: 21619

To transform (or "pivot") an Access table, you need a Crosstab Query.

The easiest way to create a Crosstab Query is with the Crosstab Query Wizard.


More Information:

Upvotes: 0

Related Questions