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.

3.3.7 Displaying the records corresponding to a given periodWhen a "Date" item is found in a Select query, you have the ability to only select the records corresponding toa given period. For example:• the customers born between "01/01/1950" and "01/01/1960",• the orders placed last month,• the products sold yesterday,•…To display the records corresponding to a given period in the current Select query:1. Select "Query description" from the popup menu of the query. The description window of the query isdisplayed2. In the middle section of the window, select a "Date" item.3. In the right section of the window, click "Between two dates".4. Specify the start date and the end date, then validate.Note: For the "DateTime" items, when the start date and the end date correspond to values, the query editorproposes preset periods (current month, previous week, floating year, and so on). To use one of these presetperiods, click "Preset period" and select the requested period.3.3.8 Limiting the number of records displayed in a Select queryThe query editor enables you to select:• the first/last n records from the result of a query,• n records from record x.For example, you want to find out:• the ten best customers: the customers who brought in the highest revenues,• the 15 worst selling products,•…To limit the number of records found in the result of the current Select 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 first n".3. Specify the number of first or last records to select or the number of records to display from a givenrecord.200Part 2: Query editor

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

Saved successfully!

Ooh no, something went wrong!