Visual Query Builder

The Visual Query Builder helps you construct complex database queries without you having to know the syntax of SQL statements. A rich set of visual options are available to let you combine SQL clauses like JOINs, GROUP BY with properties like Indexes, Operators, Aliases, Sort Type, Sort Order and Criteria. Based on your selections, the Visual Query Builder will generate a complete SQL statement that can be executed. Features like Quick Criteria Mode, Quick Filtering, Index Assistant, flexible layouts, and drag and drop to include JOINs save you time and make the process of building queries more powerful and intuitive.



Visual Query Builder functions include:

Connect to a Database Server and Create Complex Queries

Ctrl+Alt-Q invokes a Visual Query Builder window with a connection to a Database Server. The Add Table dialog allows you to include tables, columns and views of a specific database or schema. Once the table is added into the diagram, you can view the query in the SQL Pane. Execute SQL queries using Ctrl+E and view the results in different modes: Grid, Pivot Grid.screenshots Query Builder Menu | Built Query

Add Objects to Diagram Pane

The tables and views added with the Add Tables dialog appear in a Diagram Pane. More database objects can be easily added or removed from the Diagram Pane. To add columns to a query, place a check mark next to them in table entities. Bold text indicates a Primary key column. As Objects are manipulated, the SQL Pane generates the SQL automatically.screenshots Add Object | Add Column

Create JOINS with Drag and Drop

To create a JOIN in an SQL query, drag table columns from one table entity to another in the Diagram Pane. The SQL Pane displays the type of JOIN and its syntax instantly as changes are made. You can alter the JOIN type by double clicking on the Join line in the diagram and choosing the "Select All Rows" option.screenshots JOIN Properties

GROUP BY Clause

Quickly insert GROUP BY Clause to a query by selecting the columns and an aggregate function (AVG, COUNT, COUNT_BIG, MAX, MIN, SUM) from the list. Enable Group By in the Column Pane with Ctrl-G.screenshots GROUP BY with SUM

Quick Criteria Mode and Quick Filter Results

You can also specify filters to your query from the Column Pane by entering operators (LIKE, =, IN, IS NULL, IS NOT NULL, NOT IN, >, <, <>, >=, <=, BETWEEN). You can enter an Operator directly or choose it from the available drop down. Then you can specify a Criteria for the Operator to get your Resultset. We can apply quick filter to Grid and Pivot Grid Results.screenshots Results with Quick Filter

Flexible Layouts

The Visual Query Builder allows you to expand each pane for a better view. Several options are available to customize the layout. Use Ctrl+Alt-F9 to show the Diagram Pane, Ctrl+Alt-F10 to show Columns Pane, Ctrl+Alt-F11 to show SQL Pane and Ctrl+Alt-F12 to show Results Pane.screenshots Hide Columns Pane

Execute Queries for Editing Tables

Ctrl+Alt+Enter invokes the query results in an editable, Excel-like grid. The Execute Edit feature is useful for altering, inserting, deleting, cloning and formatting data in the Table Data Editor.screenshots Execute Edit Table Data Editor

Enhanced Visual Query Building

To construct SQL queries without typing any SQL statements, use the GUI to select tables or views with column selection choices allowing All Columns, Indexed Columns, Leading Indexed Columns or None. With the rich set of options available in the Visual Query Builder, users can combine any of the SQL properties like JOINs, Indexes, Operators, Aliases, Sort Type, Sort Order, Criteria and make the process of writing queries more powerful and intuitive.screenshots Sort Order with Operator and Criteria

SQL Pane with Syntax Highlighting

The SQL Pane automatically color codes SQL keywords, vendor keywords, data types, system functions, system tables, quoted strings, comments to make it easier to read and spot errors.screenshots SQL Pane

Add Filters

The Visual Query Builder allows you to quickly add filters to your SQL queries when adding tables for JOIN operation. The available filters are Quote Identifiers, Fully Qualified Tables, Database Qualified Tables, and Auto Join on Foreign Key.screenshots Filters

Index Assistant

The Index Assistant helps you in optimizing SQL Queries by displaying the index sequence and prompting you to use indexes that will be more efficient. When an index is selected, the tool will color code the column criteria in all selected columns and enumerate the column index count. This allows you to quickly identify if the index will be used in the query. If the column index enumeration is not in numerical order, it is unlikely the index will be used in the query.screenshots Index with Index Assistant

Save Query Builder Files

Once a query is built it can be saved as a .XQB file for reuse in the Visual Query Builder.screenshots Save as .XQB

Video Tutorial

Aqua Data Studio Query Builder - flash video Build complex SQL statements that include JOINs without having to type them using drag and drop and much more.
Duration: 8 minutes

References

  1. ^ Query by Example Wikipedia article. Graphical query language, using visual tables where the user would enter commands, example elements and conditions.

Home Aqua Data Studio Aqua Data Server AquaClusters Support Store Company Privacy

Copyright © 2001–2012 AquaFold, Inc. All Rights Reserved.