13.07.2015 Views

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

Reports & Queries - Source : www.pcsoft-windev-webdev.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

To modify a "calculated item" in the current query:1. Select "Query description" from the popup menu of the query. The description window of the query isdisplayed.2. In the middle section of the window, select the calculated item to modify.3. In the left section of the window, click the "Calculated item" button and select "Modify the calculateditem". The description window of a calculated item is displayed.4. Modify the expression of the item and validate. The item is automatically modified.To rename a result item in the current query (alias creation):1. Select "Query description" from the popup menu of the query. The description window of the query isdisplayed.2. In the middle section of the window, select the item to rename.3. In the right section of the window, click the "Display/Rename" button.4. Enter the new name of the item and validate. The item is automatically renamed.To display/hide an item in the result of the query:1. Select "Query description" from the popup menu of the query. The description window of the query isdisplayed.2. In the middle section of the window, select the item to display/hide.3. In the right section of the window, click the "Display/Rename" button.4. Answer "No" to the "Display this item?" question.Note: To display/hide an item in the query result, you can also:• display the popup menu of the requested item (right mouse click).• select "Display the item" or "Don’t display".To delete an item from the current query:1. Select "Query description" from the popup menu of the query. The description window of the query isdisplayed.2. In the middle section of the window, select the item to delete and click (or press the [Del] key). Theitem is automatically deleted from the query.Notes:• Deleting an item also deletes the existing selection conditions for this item.• To delete an item, you can also select "Delete the item" from the popup menu of the item.3.3.2 Sorting the records selected by a Select queryTo make the query result clearer, the records selected by the query can be sorted according to one or moreitems. Sorting the records means classifying them in an ascending order or in descending order.For example, the customers can be sorted by name, from A to Z.When several sort items are defined, the sorts are nested. To find out the sequence of the different items,click in the middle section.Note: The digits found beside the arrows can also be used to find out the sequence of the different sortitems.For example, in the window below, the result of the query is sorted:• by the total order amount,• then by the city of the customers,Part 2: Query editor 193

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

Saved successfully!

Ooh no, something went wrong!