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.

2.5 Delete query2.5.1 OverviewA Delete query (corresponding SQL <strong>com</strong>mand: DELETE) is used to delete records from a database file.Important<strong>Reports</strong> & <strong>Queries</strong> cannot be used to create Delete queries.To perform this deletion, the following information is required:• the data file where the data will be deleted.• the selection conditions of the records to delete (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.For example, deleting the orders placed before January 1st 2000.This query generates the following SQL code ("SQL code" from the popup menu of the query):DELETE FROM ORDERSWHERE ORDERS.OrderDate < ’20000101’2.5.2 Creating a Delete queryTo create a new Delete query:1. Start the wizard for creating queries:• click among the quick access buttons.• click "Query" in the wheel that is displayed.2. Specify that you want to create a delete query ("Delete (DELETE)").174Part 2: Query editor

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

Saved successfully!

Ooh no, something went wrong!