Select columns

Note

  1. Click the New button in the PowerBar.

    Shown is the New button circled in the Power Bar.

    The New dialog box displays.

  2. Select the Database tab and the Query icon.

    Click OK.

    Shown is the Database tab page of the New dialog box with icons for Database Painter, Query, and Data Pipeline. Query is circled.

    InfoMaker connects to the database, and the Select Tables dialog box displays. In this dialog box you can select one or more tables to use.

    Shown is the Select Tables dialog box with a scrollable list of tables.

    You are going to use two of the tables.

  3. Click the tables named fin_code and fin_data.

    Shown is the Select Tables dialog box with a scrollable list of tables. The fin _ code and fin _ data tables are highlighted.
  4. Click Open.

    The fin_code and fin_data tables display. Both tables have a code column. The tables are joined on the code column.

    Shown are the fin _ code and fin _ data tables. Fin _ code has columns named code, type, and description. A line with an equal sign connects the code column in fin _ code to the code column in the fin _ data table. Fin _ data also has columns for year, quarter, and amount.

    If your display does not include all the information shown in the picture, right-click in the Table Layout view and select the information you want to display from the Show menu.

    The fin_data table has a code value in each row to indicate what the row of data applies to (for example, r1 means revenue from fees).

    The fin_code table stores information about codes, including the actual values (such as r1 and e4), the type of each code (revenue or expense), and a description of each code.

    Next you select columns from the tables.

  5. Click year in the fin_data table.

    Click quarter in the fin_data table.

    Click amount in the fin_data table.

    Click type in the fin_code table.

    Click description in the fin_code table.

    When you click each column, it is highlighted in the table and added to the selection list above the tables.

    Shown is the table layout view with the two tables connected at their code columns. Above them is a Selection list with the columns year, quarter, anount, type, and description arranged left to right.
  6. Select Design>Preview from the menu bar.

    You can see the results of your query. InfoMaker uses your query as it is currently defined to access the database and retrieve data.

    Shown is a Sequel Preview of the query with rows of data displayed in the five columns that were selected. The columns are labeled Year, Quarter, Amount in thousands, Type, and Description.
  7. Use the scroll bar to view the data.

    Each row has either the word expense or the word revenue in the Type column. First you save the query and then you use the value in the Type column to select rows for the query.

  8. Select File>Close from the menu bar.

    You return to the workspace.