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. HOW DO I CREATE A QUERY?2.1 OverviewTo create a query, the query editor proposes two methods:• create the query via a wizard or a description window with automatic generation of the SQL code.• enter the SQL code. See “Query in SQL code”, page 177 for more details.The query editor allows you to create several types of queries:• Select query: Used to view a selection of records <strong>com</strong>ing from a database. See “Select query”,page 167 for more details.• Insert query: Used to add records into a database file. See “Insert query”, page 169 for more details.Important<strong>Reports</strong> & <strong>Queries</strong> cannot be used to create Insert queries.• Update query: Used to modify records in a database file. See “Update query”, page171 for moredetails.Important<strong>Reports</strong> & <strong>Queries</strong> cannot be used to create Update queries.• Delete query: Used to delete records from a database file. See “Delete query”, page 174 for moredetails.Important<strong>Reports</strong> & <strong>Queries</strong> cannot be used to create Delete queries.• Union query: Used to <strong>com</strong>bine selection queries. See “Union query”, page 175 for more details.Note: All types of queries can be based on items belonging to:• a data file described in the analysis.• a query that was created beforehand.Insert, Update and Delete queries:The ability to create Insert, Update and Delete queries is supported for <strong>com</strong>patibility with the SQL standard.The use of native WLanguage <strong>com</strong>mands (HReadFirst, HReadNext, HAdd, HModify, HDelete, …) is muchmore suitable for programming this type of process.SQL is a query language used to interrogate data but it is not well suited for custom modifications of thisdata. To add, modify or delete records in a database file, the performance and the simplicity of WinDev andWebDev are unmatchable.166Part 2: Query editor

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

Saved successfully!

Ooh no, something went wrong!