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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.2.2 Creating a Select queryTo create a new Select query:1. Start the wizard for creating queries:• click among the quick access buttons of the ribbon.• click "Query" in the wheel that is displayed.2. Specify that you want to create a Select query ("Select").3. If your project is not linked to a WinDev or WebDev analysis, specify the analysis to which the querymust be linked.4. Validate the wizard screen. The description window of the query is displayed. This window is used todescribe your query. This window is presented in details in “Description window of a Select query”,page 186.ImportantIn <strong>Reports</strong> & <strong>Queries</strong>, the creation wizard asks all the necessary questions for creating aquery.5. Once the description of your query is validated, the graphic representation of the query is automaticallydisplayed in the query editor.Notes:• You also have the ability to create a new Select query via a simplified wizard: check "Use the simplifiedwizard" in the wizard for query creation.Note: The simplified wizard cannot be used to manage the "full-text" indexes.• You have the ability to modify all the characteristics of a query ("Query description" from the popupmenu of the query). See “Characteristics of a query”, page 191 for more details.• To generate 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.3 Insert query2.3.1 OverviewAn Insert query (corresponding SQL <strong>com</strong>mand: INSERT) is used to add records into a database file.Important<strong>Reports</strong> & <strong>Queries</strong> cannot be used to create Insert queries.To perform this insertion, the following information is required:• the data file where the data will be inserted.• the items into which the new values will be inserted.This information represents the characteristics of the query. See ’“Characteristics of a query”, page 191 formore details.Part 2: Query editor 169

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

Saved successfully!

Ooh no, something went wrong!