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.

Used to perform or cancel the sort on a query item.Displays:• the Union query in natural language.• the SQL code corresponding to the Union query.3.2.4 Description window of a query (Insert, Update or Delete) or description window of aquery in SQL codeImportant<strong>Reports</strong> & <strong>Queries</strong> cannot be used to create:• Insert queries.• Update queries.• Delete queries.The description window of a query (Insert, Update or Delete) or the description window of a query in SQL codeis used to:• find out and/or modify the name and the caption of the query.• specify whether the SQL <strong>com</strong>mands used must be checked (or not) by the HFSQL engine ("Run withhQueryWithoutCorrection in test mode").• specify the connection used when running the test of the query.• find out and/or modify the values to insert or to modify in the result of the query (Insert query orUpdate query).• find out and/or modify the selection conditions (Update query or Delete query).• find out and/or modify the sequence of selection conditions (Update query or Delete query).3.3 Characteristics of a query3.3.1 Items used in a Select queryA query created in the query editor can contain several types of items:• items of the analysis associated with the current application.These items correspond to the items of the data files described in the analysis. Calculations can beapplied to these items.You can use a full-text index item. The query will perform a full-text search.• items of a query in the current project.These items correspond to the items used in the queries included in the application.• count items.This type of item enables you to count the number of records found in the query, or the number ofrecords found in a grouping of records.• calculation item.This type of item allows you to perform a calculation on the values of an item. See “Operations thatcan be performed in a Select query”, page 195 for more details.• "calculated" items.This type of item allows you to add to the query result an item whose value corresponds to a calculationon items. For example, PriceBT * VATRate.The items taking part in a query are chosen when the query is created. However, you have the ability to add,modify or delete the items used in a query. These operations are described in the following paragraphs.Note: The items whose value is displayed in the query result are called result items.Part 2: Query editor 191

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

Saved successfully!

Ooh no, something went wrong!