21.08.2013 Views

Getting Started with OpenOffice.org 3.3 - OpenOffice.org wiki

Getting Started with OpenOffice.org 3.3 - OpenOffice.org wiki

Getting Started with OpenOffice.org 3.3 - OpenOffice.org wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 229: Field for distance traveled calculations<br />

3) Calculate fuel economy:<br />

Type ("End-Reading".Odometer – Fuel.Odometer)/"End-<br />

Reading".FuelQuantity in the next column to the right of the word Field.<br />

Note<br />

Figure 230: Fuel economy calculation field<br />

When entering fields for these calculations, you must follow this format:<br />

table or query name followed by a period follow by the field name. For<br />

hyphenated or multiple-word names (table or query), use double quotes<br />

around the table or query name. The query will then add the rest of the<br />

double quotes as in Figure 230.<br />

Use the arithmetical symbol between the two. More than one<br />

calculation can be done by using parentheses to group the arithmetical<br />

operations.<br />

Step 9: Run the query and make some modification.<br />

After we run the query to make sure it works correctly, we will hide all of the fields<br />

that we do not need.<br />

1) Click the Run Query icon in the Design Query toolbar (Figure 223). The results<br />

are in Figure 231.<br />

Figure 231: Result of running the fuel economy query<br />

Notice that not all of the last column label is visible because some of the labels<br />

are long. We can fix this problem by using an alias for many of the fields. The<br />

labels are replaced by their aliases.<br />

2) Add Aliases:<br />

Type in the aliases as they are listed in Figure 232.<br />

Chapter 8 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> Base 243

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!