View query output
In this task we'll illustrate how to work with the query output, how to find particular fields and how to list them. You'll work with the field rtu_c that can have one of the 3 following values: e for equipped, u for unequipped and g for growth.
Follow these steps:
- Start MUT and select an ECP in the ECP List Box .
- From the Query List Box , select ceqcom2_ddtvr_rtu_c query .
- View the last edited output, by opening the Edit Query Output window, using one of these 3 methods: (1) click Edit Query Output on the vertical toolbar, (2) select Edit > Edit Query Output , or (3) type Ctrl + D .
- Select (highlight) a cell in the ddtvr column.
- Right-click on the cell for Menu options or click the Menu button.
- Choose Get Distinct... > rtu_c -MUT displays one form for each value of rtu_c in the output.
- Locate rtu_c = e and select (highlight) it.
- Right-click on the cell for Menu options or click the Menu button.
- Select Get All... > rtu_c = e -MUT displays only these forms.
- Select a cell in the csno column.
- Right-click on the cell for Menu options or click the Menu button.
- Select Sort selected column ascending -MUT sorts the displayed forms by the key field csno .
- Print all displayed forms, using one of these 2 methods (1) click the Print button, or (2) select Menu > Print all rows .
- Open a blank MS Excel spreadsheet.
- Highlight the whole ddtvr column (click on the column header), select Edit > Copy selected row(s) to clipboard -MUT copies all selected rows to the clipboard.
- Paste the rows on the MS Excel spreadsheet, using one of the 3 methods: (1) right-click on a cell and choose Paste , (2) select Edit > Paste or (3) type Ctrl + P .
- Insert a row above the first row, using one of these 2 methods: (1) right-click a cell in the first row and choose Insert Row , (2) select Insert > Rows .
- In the first row of cells, type in the names of each column from the Edit Query Output window.
- Save the file as ( File > Save As ) ceqcom2_[ECPName](rtc_u=e).xls (remember where you save this file for use in another task).
- Select File > Exit to close MS Excel.
- Click Done on the Edit Query Output window to close it.