DQL Basics

Welcome to the DQL Programmer's Guide

The DataEase Query Language (DQL) extends the data processing and reporting capabilities of DataEase far beyond those of a standard form or report. In addition to letting you list, modify, and delete selected records, DQL lets you:

 

Who Should Read this Book

This book is written for professional application designers, system administrators, and experienced users who want to create DQL programs to extend the power of their applications.

If you are responsible for designing custom applications, you'll find reference information on creating tables, forms, reports, and menus, defining relationships, and other database design guidelines in the DataEase Designer's Guide (DG).

If you use an application designed by someone else, you'll find all the information you need in the companion volume, DataEase User's Guide (UG).

Before you begin working with DQL, we recommend that you read the DataEase User's Guide (UG) and Designer's Guide (DG) and become thoroughly familiar with DataEase record entry and document creation operations.

 

How this Book Is Organized

This book is organized into four sections, as follows:

Section I, Orientation, introduces the main features of the DataEase Query Language and the DQL editing environment, and explains the basic methods used to create a DQL Procedure. Section I contains Chapters I, 1, and 2.

Section II, Scripts, guides you through the creation of several simple and complex DQL Procedures. Section I1 explains all major DQL concepts and methods, including Control and Processing Procedures, Data-entry forms, and accessing data stored in an SQL database. Section 11 contains Chapters 3, 4, and 5.

Section III, Tech Tips, answers your most frequently asked DQL questions, solves the most common programming problems, and offers creative examples and short-cuts that show how you can get the most from DQL. Section III contains Chapters 6 and 7.

Section IV, Keywords, contains the DQL Lexicon, a dictionary-style reference that explains every command, function, and feature of DQL. Most entries in the DQL Lexicon section include a DQL script sample to illustrate how a particular DQL term is used in a script. Section IV contains Chapter 8.

 

Typographical Conventions

Throughout the DataEase manuals, we've used the following typographical conventions to make the documentation easier to understand.

 

Term

Typeface Used

Example

 

Glossary Term

Italic

Data Model

Menu Option

Bold

File>>Open

Function Key

Uppercase

F7 DELETE RECORD

Application Name

bold

Club ParaDEASE

Document/Table Name

Uppercase

MEMBERS

Field Name

Small Capitals

FIRSTNAME

DQL Term

Bold Lowercase

highest of

SQL Command

Uppercase Courier

CREATE TABLE

 

Glossary terms with special meaning in DataEase are printed in italics the first time they occur in the text and are defined in the on-line glossary available in Help.

When a menu option is explained, a pull-down menu appears in the upper right-hand corner of the page. The menu option under discussion is highlighted, as in the illustration below:

 

image\dqli-4.gif

DataEase function keys are assigned names (F2 SAVE AS NEW RECORD). However, you need only press the F2 key to execute the command; you do not need to type SAVE AS NEW RECORD. The key name is included in the documentation to help you recall the purpose of each key when you are learning the product.