Access uses query--1.3. A comparison of a set of data with a crosstab query

Source: Internet
Author: User
Tags comparison query crosstab

3. Using a crosstab query to reflect a set of data comparisons

Create a new query, select the Crosstab Query Wizard, and then select Fleet Transport Query, which appears in the above dialog box and selects the driver field as the row heading from the available fields. Click Next.

Then select "Cargo category" from the field as the column heading. Click Next.

Select the "Net Weight" field, the function selects "sum", finally a name for the crosstab query, and the wizard ends.

The diagram above is the Design view of the query you just generated.

The table below is the result of the crosstab query, which clearly contrasts the number of goods each driver transports.

1715.40

922.30

1601.90

TD style= "BORDER:0;PADDING:0;" > TD style= "BORDER:0;PADDING:0;" > TD style= "BORDER:0;PADDING:0;" >
Fleet Transport query--cross-table

driver

scrap stone

fine powder

Li Dafang

170.00

13.50

310.00

2208.90

Wang

18.50

15.90

21.30

978.00

Zhang cute

310.00

94.20

340.00

2346.10

Zhao Beautiful

790.00

1537.40

21.60

420.00

2769.00







Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.