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 add an item into the current query:1. Select "Query description" from the popup menu of the query. The description window of the query isdisplayed.2. In the left section of the window, double-click the item to add. This item is displayed in the middle sectionof the window.To perform a full-text search:1. Select "Query description" from the popup menu of the query. The description window of the query isdisplayed.2. In the left section of the window, double-click the "FullText_Index" item to add. The description windowof the search is displayed.3. Specify the parameters of the full-text search to perform:• the index used• the search value (value or parameter). If the value is described in the query, a wizard allows you toenter all the necessary conditions on the search value.• how to sort the result based on the relevance subscript of the search for each record.Note: only the records whose relevance subscript is greater than 0 are kept in the result of the query.To add a count item into the current query:1. Select "Query description" from the popup menu of the query. The description window of the query isdisplayed.2. In the right section of the window, click the "Count" button.3. To count:• the number of values for the selected item in the query result: select "On the selected item".For example, this option can be used to find out the number of customers who have a cell phone ("CellPhone"item filled).• the number of values for another item in the query result: select "On another item" and select therequested item.• the number of records in a file or in a query (according to the selection conditions of the current query):select "On a file or query".For example, this option can be used to find out the number of products found in the "Product" file.Note: Regardless of the count performed, you have the ability to specify whether the duplicates must betaken into account (or not) by the count (Count(Distinct) in SQL).To add a "calculated" item into the current query:1. Select "Query description" from the popup menu of the query. The description window of the query isdisplayed.2. In the left section of the window, click the "Calculated item" button and select "New calculated item".The description window of a calculated item is displayed. This window allows you to enter the SQL codecorresponding to the calculation to perform. In this window, you can:• handle the items found in the data files of the current analysis and the items found in the queries ofthe current project.• enter some SQL statements. The list of available SQL statements is displayed. All you have to do isdouble-click a statement to display it in the code section.• enter WLanguage functions. The list of available WLanguage functions is displayed. All you have to dois double-click a function to display it in the code section. To use a WLanguage function, its name mustbe preceded by "WL.".• nest the WLanguage functions and the SQL code used.3. Specify the mathematical formula of the item and validate. The item is automatically added.192Part 2: Query editor

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

Saved successfully!

Ooh no, something went wrong!