21.08.2013 Views

Getting Started with LibreOffice 3.3 - The Document Foundation Wiki

Getting Started with LibreOffice 3.3 - The Document Foundation Wiki

Getting Started with LibreOffice 3.3 - The Document Foundation Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

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 are long.<br />

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

their aliases.<br />

2) Add Aliases:<br />

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

Figure 232: Query table <strong>with</strong> aliases added<br />

3) Run the query again. <strong>The</strong> results are in Figure 233.<br />

Figure 233: Query run <strong>with</strong> aliases<br />

We really do not need the column showing the difference between the FuelID fields from<br />

the table and query, so we will hide it. While it will not be visible, it will still be used in the<br />

calculations.<br />

4) Hide a field that does not need to be seen.<br />

Remove the check in the box of the Visible cell as in Figure 234.<br />

Figure 234: Making a field invisible in a query run<br />

5) Rerun the query (Figure 235).<br />

Figure 235: Query run <strong>with</strong> aliases<br />

Step 10: Close, save, and name the query.<br />

My suggestion for a name is Fuel Economy.<br />

<strong>The</strong>re are obviously other calculations that can be made in this query such as cost per distance<br />

traveled and how much of the cost belongs to each of the payments types.<br />

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

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

Saved successfully!

Ooh no, something went wrong!