
Figure 232: Query table with aliases added
3) Run the query again. The results are in Figure 233.
Figure 233: Query run with aliases
We really do not need the column showing the difference between the FuelID
fields from the table and query, so we will hide it. While it will not be visible, it
will still be used in the calculations.
4) Hide a field that does not need to be seen.
Remove the check in the box of the Visible cell as in Figure 234.
Figure 234: Making a field invisible in a query run
5) Rerun the query (Figure 235).
Figure 235: Query run with aliases
Step 10: Close, save, and name the query.
My suggestion for a name is Fuel Economy.
There are obviously other calculations that can be made in this query such as cost
per distance traveled and how much of the cost belongs to each of the payments
types.
Note
To fully use queries requires a knowledge of set operations (unions,
intersections, and, or, complements, and any combinations of these).
Having a copy of the Hsqldb User Guide, available from
http://hsqldb.org/, is also extremely useful.
244 Getting Started with OpenOffice.org 3.3
Comentarios a estos manuales