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.

8. Repeat operations 5 to 7 for each item for which a value must be inserted. Go to the next wizardscreen.9. Enter the name of the query (name of the ".WDR" file corresponding to the query). This name will beused to identify the query in your programs.10. Specify the caption of the query. This caption will be used in the project documentation.Note: A query name is automatically proposed from the caption.11. Validate the description of the query. The graphic representation of the query is automatically displayedin the query editor.Notes:• To modify all the characteristics of a query, select "Query description" from the popup menu of thequery. See “Characteristics of a query”, page 191 for more details.• To view the SQL code corresponding to this query, select "SQL code" from the popup menu of thequery. If modifications are performed in the description of the query, these modifications will be automaticallycarried over into the corresponding SQL code.• You can also create a query from one or more data files described in the data model editor: to do so,"Drag and Drop" the data files selected in the "Analysis" pane to the query editor.• The test of the created query can be run from the query editor. See the “Test of the query”, page 205for more details.2.4 Update query2.4.1 OverviewAn Update query (corresponding SQL <strong>com</strong>mand: UPDATE) is used to modify records in a database file.Important<strong>Reports</strong> & <strong>Queries</strong> cannot be used to create Update queries.To perform this modification, the following information is required:• the data file in which the data will be modified.• the items in which the values will be modified.• the selection conditions of the records to modify (customers who live in Paris, products whose price isgreater than 40 Euros, …).This information represents the characteristics of the query. See “Characteristics of a query”, page 191 formore details.Part 2: Query editor 171

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

Saved successfully!

Ooh no, something went wrong!