Specify row selection criteria

Note

Now you select the rows to include in the query. To do this you specify selection criteria.

The query you are creating is for expenses, so the rows you need are those whose type is expense. You do not need the rows whose type is revenue.

  1. Click the Where tab at the bottom of the workspace if it is not in front.

    The Where tab comes to the front. In the Where tab you specify selection criteria for retrieving rows.

    Shown is the Where tab with columns labeled Column, Operator, Value, and Logical.
  2. Click the first space under Column and then click the arrow to display a list of columns.

    Click the column named "fin_code"."type" in the list of columns.

    Shown is the Where tab with columns labeled Column, Operator, Value, and Logical. Under Column is a list of columns. The entry " fin _ code " dot " type " is highlighted.

    The equal sign (=) displays by default in the Operator box. This is what you want.

  3. Move the pointer over the Value box.

    Press the right mouse button to display the pop-up menu.

    Select Value.

    Shown is the Where tab with columns labeled Column, Operator, Value, and Logical. Under Value is a pop up menu with the Value option circled. Other options are Columns, Functions, Select, and Clear, and Arguments, which is grayed.

    When you select Value, InfoMaker lists the values in the "fin_code"."type" column, which are expense and revenue.

    Shown is a list of values labeled Type. They include expense, which is highlighted, and revenue.
  4. Select expense and click the Paste button.

    The selection criteria are complete. Notice that the value expense is surrounded with single quotes. These are required. If you type the value here rather than choosing it, you need to type the single quotes.

    Shown is the Where tab. Under Column is the entry " fin _ code " dot " type ". Under Operator is an equal sign, and under Value is the entry " expense ".  Logical is blank.

    Notice that the Logical box displays at the end of the line. This box is for choosing a logical connector such as AND so you can specify more than one selection requirement. You do not need to use this box for this query.

  5. Select Design>Preview from the menu bar.

    Use the scroll bar to view the data.

    Now all rows have expense in the Type column. Rows with revenue in the Type column are not retrieved.

    Shown is the Sequel Preview screen with the entry expense in the Type column for every row of data.
  6. Select File>Close from the menu bar.

    You return to the workspace.