Introduction

FastQueryBuilder (FQB) is a visual query builder. You can use FQB in your applications written in Borland Delphi or Borland C++Builder environment for simple SQL generator creation.

FQB enables to work with local and client-server databases using BDE. Also there is an opportunity to work also via other components for data access: ADO, IB, FIBPlus


Quick Start

To begin working with FQB run Delphi, create new project.

Place TfqbDialog and TfqbBDEEngine components on the form. Set TfqbBDEEngine.DatabaseName := 'DBDEMOS'.

Link Engine property of TfqbDialog component to TfqbBDEEngine. Place button on form, and in OnClick event of this button write:

procedure TForm1.Button1Click(Sender: TObject);

begin

  fqbDialog1.Execute

end;

That is all! Run application and Fast Query Builder main window will open on clicking on this button.


Work with Query Builders

Query designer appearance:

1 - toolbar

2 - designer display space

3 - available tables list

4 - selected table fields list

Toolbar:

 - open SQL file

 - save query to file (query scheme is saved there too)

 - designer display space clearing

 - Îê button. Exit designer with saving.

 - Cancel button. Exit designer without saving.

Designer Display Space:

Designer display space and available tables list support drag'n'drop technology, i.e. for table placing in display space it is sufficient to drag it there with mouse. Another variant: double-click on table name in available tables list.

For including any field from table it is sufficient to select it:

Selected fields will appear in parameters table:

Visibility - defines whether field gets into select construction.

Where - field selecting condition. For example '> 5'.

Sort - defines sorting according to field.

Function - defines function applied to field.

Group - grouping according to field.

By means of  “dragging” fields between tables links may be formed (join). On link creation compatibility of field types is verified. Link formation between non-compatible fields is impossible.

For link parameters setting it is necessary to place mouse on link line, call dropping menu and select Options item. Link parameters window will appear: