MS Access fields as columns

后端 未结 2 863
忘了有多久
忘了有多久 2021-01-22 20:17

How can you make a query in MS Access, so that the fields are grouped into columns?

It is easier to explain through an example.

Table:

        Br         


        
2条回答
  •  无人共我
    2021-01-22 20:44

    Try like this

    TRANSFORM Sum(tabl1.[Quantity]) AS SumOfQuantity
    SELECT tabl1.[brand], Sum( tabl1.[Quantity]) AS [Total Of Quantity]
    FROM tabl1
    GROUP BY tabl1.[brand]
    PIVOT tabl1.[Date];
    

提交回复
热议问题