Home | Previous Page | Next Page   Defining Queries > Creating a Query >

Using the Table Button

The Table button displays the Column Selection window. You can use the Column Selection window to build queries by selecting tables and columns. The ipload utility inserts the selected columns and tables into the appropriate text boxes of the query-definition window.

To use the Column Selection window
  1. Follow the steps in Creating a Query to display the query-definition window (Figure 77).
  2. Click Table.

    The Column Selection window appears, as Figure 78 shows. The Tables list box includes synonyms and views that are valid for the local database server.

  3. Select a table.

    After you select a table, the right-hand pane displays a list of the columns in that table. Figure 78 shows the Column Selection window with the customer table selected.

    Figure 78. The Column Selection Window After Selecting a Table
    begin figure description - This graphic depicts the ipload graphical user interface. The onpladm command line utility provides the same functionality. - end figure description
  4. Select one or more columns to use in the query.

    Use the following actions to select columns.

    To Select
    Perform This Action
    A single column
    Select that column.
    All columns
    Click Select All.
    Consecutive columns
    Select the first column. Move to the final column and hold down SHIFT while you select that column.
    Nonconsecutive columns
    Select a column. Hold down CONTROL while you select additional items.

    Figure 79 shows the Column Selection window with several columns selected.

    Figure 79. Columns Selected from a Table
    begin figure description - This graphic depicts the ipload graphical user interface. The onpladm command line utility provides the same functionality. - end figure description
  5. When you finish selecting columns, click OK to return to the query-definition window.

    When the query-definition window reappears, the mouse cursor changes to a pointing hand and the message line reads:

    Position Cursor Where Column Data to be Inserted
  6. Select the Select text box or the Where text box.

    Figure 80 shows columns inserted into the Select text box. The ipload utility also inserts the table name into the From text box.

    Figure 80. The Query-Definition Window After Using the Table Button
    begin figure description - This graphic depicts the ipload graphical user interface. The onpladm command line utility provides the same functionality. - end figure description
  7. Repeat steps 2 through 6 to add columns from other tables.
  8. Modify the text in the Where text box so that it is a valid WHERE clause.

    See Editing the WHERE Clause.

  9. Click OK to save the query and return to the Query window.
  10. Click Cancel to return to the HPL window.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]