3. Use cross-table queries to compare a set of data
Create a query, select the "cross tabulation query wizard", and then select "Fleet transportation query". In the preceding dialog box, select the "driver" field as the line title from the available fields. Click Next.
Then, select "goods category" from the field as the column title. Click Next.
Select the "net weight" field, select "sum" for the function, and name the cross table query. The Wizard ends.
Is the design view of the generated query.
The following table shows the query results of the cross tabulation, which clearly compares the quantity of each driver transporting a variety of goods.
Fleet transportation query-cross tabulation
Driver
Waste Rock
Excellent Powder
Ore
Others
Total
Li Dafang
170.00
1715.40
13.50
310.00
2208.90
Wang qicang
18.50
922.30
15.90
21.30
978.00
Zhang cute
310.00
1601.90
94.20
340.00
2346.10
Zhao Mei
790.00
1537.40
21.60
420.00
2769.00