Access use query-1.1. Use SELECT query to create a calculated Field

Source: Internet
Author: User


1. Use SELECT query to create a calculated Field

Create a selection query, add the "Fleet transportation" table, and drag all its fields to the design grid. As shown in figure 1, if you fill in "net weight: Gross Weight-gross weight" in the blank column, the system will automatically add "[]" to "gross weight" and "gross weight" to indicate that they are fields. Save this query as "Fleet transportation query ".
The following table shows the newly created fleet transportation query. The net weight is calculated automatically:

Fleet transportation Query

Driver

Goods type

Gross Weight

Skin weight

Net weight

Li Dafang

Others

75.00

25.00

50.00

Li Dafang

Others

135.00

45.00

90.00

Zhao Mei

Others

75.00

25.00

50.00

Zhang cute

Others

150.00

50.00

100.00

Zhao Mei

Excellent Powder

19.70

5.40

14.30

Zhang cute

Excellent Powder

20.70

5.40

15.30

Zhang cute

Excellent Powder

20.60

5.40

15.20

Zhang cute

Ore

19.60

5.40

14.20

Zhang cute

Excellent Powder

20.60

5.40

15.20

Zhang cute

Excellent Powder

21.10

5.40

15.70

Zhang cute

Ore

21.20

5.40

15.80

Li Dafang

Excellent Powder

17.40

5.40

12.00

Zhao Mei

Waste Rock

120.00

40.00

80.00

Zhao Mei

Others

15.00

5.00

10.00

Li Dafang

Waste Rock

105.00

35.00

70.00

Zhang cute

Waste Rock

105.00

35.00

70.00

Zhao Mei

Waste Rock

105.00

35.00

70.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.