Query data entry for a web list is done similar as forms.

 

1 Headline

Headline actions in order to modify query are similar as form query.


The major difference is that only one query type (Construct) is permitted for reports, whereas two (Construct and FormAuto) are supported for query forms.

 

1.1 Query Type

Clicking on "Change Query Type" reveals two options:

  1. FormAuto
  2. Construct

Each option changes main panel interface and search attributes method too.

 

1.1.1 FormAuto

The FormAuto option displays all query sections as shown on the object form. This option improves user comprehension and ability to view various metrics.


 

1.1.2 Construct

The Construct query type option contains all possible sections to be completed in two columns. Sections are arranged from left to right, top to bottom.


 

2 Form Screen

The form screen displays groups of elements for which the user may wish to search. The desired number of groups can be specified in order to limit results. This section is used in the same way as query forms.

 

2.1 Query Examples with Relational Operators and Metacharacters

At the end of this section there is a video demonstration with some operators.

  1. Queries with Relational Operators: relational operators allow values to be selected based on equality, inequality, or greater/less than conditions.
    Description Operator Entered SQL translation Data types which user can access Database managers
    Select ABC values ABC fieldname = 'ABC' Alphanumeric, numerical, and date values ALL Databases
    Select non-ABC values ABC !=ABC fieldname != 'ABC' Alphanumeric, numerical, and date values ALL Databases
  2. Queries are content operators informed or not informed: query construction in order to obtain sections with informed content or not informed. On relational data bases exists null section concept, it means, columns that aren't marked as null columns. On this table is explained how to locate columns that have null value.
    Description Operator entered SQL Translation Data types which user can access Database Managers
    Select sections with null value. = fieldname IS NULL ALL types ALL Databases
    Select sections with non-null values. != fieldname IS NOT NULL ALL types ALL databases
  3. Queries with value lists: To build a query by entering group values:
    Description Operator entered SQL translation Data types which user can access Database Managers
    Select all sections with AB, GH o YZ values AB|GH|YZ fieldname IN ('AB','GH','YZ') Alphanumeric, numerical, and date values ALL Databases
    Select all sections without AB, GH o YZ values !AB|GH|YZ fieldname NOT IN ('AB','GH','YZ') Alphanumeric, numerical, and date values ALL Databases

  4. Queries by Range: Build queries by entering a range between two values.
    Description Operator entered SQL translation Data types which user can access Database Managers
    Select sections between 200 and 800, inclusive 200:800 fieldname BETWEEN 200 AND 800 Alphanumeric, numerical, and date values ALL Databases
    Select sections not between 200 and 800, inclusive !200:800 fieldname NOT BETWEEN 200 AND 800 Alphanumeric, numerical, and date values ALL Databases
    Select sections between 01-07-2007 and 31-12-2007, inclusive 01-07-2007:31-12-2007 fieldname BETWEEN '01-07-2007' AND '31-12-2007' Alphanumeric, numerical, and date values ALL Databases
    Select sections not between 01-07-2007 and 31-12-2007, inclusive !01-07-2007:31-12-2007 fieldname NOT BETWEEN '01-07-2007' AND '31-12-2007' Alphanumeric, numerical, and date values ALL Databases

  5. Queries with patterns selection of LIKE type: Queries construction through introduction metacharacters of LIKE type.
    Description Operator entered SQL Translation Data types which user can access Database Managers
    Select sections whose strings contain the word GREEN %GREEN% fieldname LIKE '%GREEN%' Alphanumerics ALL Databases
    Select sections whose strings do not contain the word GREEN !%GREEN% fieldname NOT LIKE '%GREEN%' Alphanumerics ALL Databases
    Select sections whose string has at least twice word GREEN %GREEN%GREEN% fieldname LIKE '%GREEN%GREEN%' Alphanumerics ALL Databases
    Select all sections whose string begins with the word GREEN GREEN% fieldname LIKE 'GREEN%' Alphanumerics ALL Databases
    Select sections whose string ends with the word GREEN %GREEN fieldname LIKE '%GREEN' Alphanumerics ALL Databases
    Select sections which have two characters __ fieldname LIKE '__' Alphanumerics ALL Databases
    Select sections whose string begins with 62, on third character accepts any value, on fourth zero and from fourth character, any value. 62_0% fieldname LIKE '62_0%' Alphanumerics ALL Databases
    Select strings which contain a single-character LIKE statement, e.g., to consult sections whose string ends with _s. This option is intended to protect wildcard character sub-band c _. [Not executable in interactive mode, only from SQL.] fieldname LIKE '%#_s' ESCAPE '#' Alphanumerics ALL Databases
  6. Queries with selection patterns of MATCHES type: Build complex queries by entering MATCH-type metacharacters.
    Description Operator entered SQL Translation Data types which user can access Database Managers
    Select sections whose strings contain the word GREEN *GREEN* fieldname MATCHES '*GREEN*' Alphanumerics IBM IDS Informix
    Select sections whose strings do not contain the word GREEN !*GREEN* fieldname NOT MATCHES '*GREEN*' Alphanumerics IBM IDS Informix
    Select sections whose string has at least twice the word GREEN *GREEN*GREEN* fieldname MATCHES '*GREEN*GREEN*' Alphanumerics IBM IDS Informix
    Select all sections whose string begins with the word GREEN GREEN* fieldname MATCHES 'GREEN*' Alphanumerics IBM IDS Informix
    Select sections whose string ends with the word GREEN *GREEN fieldname MATCHES '*GREEN' Alphanumerics IBM IDS Informix
    Select sections which have two characters ?? fieldname MATCHES '??' Alphanumerics IBM IDS Informix
    Select sections whose string begins with 62, on third character accepts any value, on fourth zero and from fourth character, any value. 62?0* fieldname MATCHES '62?0*' Alphanumerics IBM IDS Informix
    Select sections whose string begins with 4, second character should have any value as 1,2,3,4 or 5 and from the third character any value. 4[12345]* fieldname MATCHES '4[12345]*' Alphanumerics IBM IDS Informix
    Select sections whose string begins with ABC and on 4rt character has a value between letter A and M, and from 4th, any value. ABC[A-M] fieldname MATCHES 'ABC[A-M]' Alphanumerics IBM IDS Informix
    Select sections whose string begins with character 6 or 7. [67]* fieldname MATCHES '[67]*' Alphanumerics IBM IDS Informix
    Select sections whose string starts with 43 and on the third character a value between 6 and 9 from and third character any value. 43[6-9]* fieldname MATCHES '43[6-9]*' Alphanumerics IBM IDS Informix

  7. Queries with expression patterns using REGEXP_LIKE functions: build complex queries by entering regular expressions.
    Description Operator entered SQL Translation Data types which user can access Database Managers
    Select sections whose strings contain the word GREEN .*GREEN.* REGEXP_LIKE (fieldname, '.*GREEN.*') Alphanumerics Oracle
    Select sections whose strings do not contain the word GREEN !.*GREEN.* NOT REGEXP_LIKE (fieldname, '.*GREEN.*') Alphanumerics Oracles
    Select sections whose string has at least twice the word GREEN GREEN.*GREEN REGEXP_LIKE (fieldname, 'GREEN.*GREEN') Alphanumerics Oracle
    Select all sections whose string begins with the word GREEN ^GREEN.* REGEXP_LIKE (fieldname, '^GREEN.*') Alphanumerics Oracle
    Select all sections whose string ends with the word GREEN .*GREEN$ REGEXP_LIKE (fieldname, '.*GREEN$') Alphanumerics Oracle
    Select sections which have two characters ^[[:alnum:]]{1}[[:alnum:]]{1}$ REGEXP_LIKE (fieldname, '^[[:alnum:]]{1}[[:alnum:]]{1}$') Alphanumerics Oracle
    Select sections whose string begins with 62, on third character accepts any value, on fourth zero and from fourth character, any value. ^62.0 REGEXP_LIKE (fieldname, '^62.0') Alphanumerics Oracle
    Select sections whose string begins with 4, second character should have any value as 1,2,3,4 or 5 and from the third character any value. ^4[12345] REGEXP_LIKE (fieldname, '^4[12345]') Alphanumerics Oracle
    Select sections whose string begins with ABC and on 4th character has a value between letter A and M. This option will select only sections with four or more characters. ^ABC[A-M]$ REGEXP_LIKE (fieldname, '^ABC[A-M]$') Alphanumerics Oracle
    Select sections whose string begins with character 6 or 7. ^[67] REGEXP_LIKE (fieldname, '^[67]') Alphanumerics Oracle
    Select sections whose string starts with 43 and on the third character a value between 6 and 9 from and third character any value. ^43[6-9] REGEXP_LIKE (fieldname, '^43[6-9]') Alphanumerics Oracle
    Select sections whose string begins with character words 430 or 572 ^430|^572 REGEXP_LIKE (fieldname, '^430|^572') Alphanumerics Oracle
    Select sections whose string ends with the characters 001 or 005 001$|005$ REGEXP_LIKE (fieldname, '001$|005$') Alphanumerics Oracle
    Select sections that contain three consecutive space characters. [[:space:]]{3} REGEXP_LIKE (fieldname, '[[:space:]]{3}') Alphanumerics Oracle

 

3 Query Buttons

Different buttons are available at the bottom of the screen, depending on database query privileges. The options include:

Query Buttons
Icon Name Description
Rewind to previous query Reload a past query. If no queries prior to the current one exist, the button will appear darker.
Forward to next query Advance to the next query performed after the currently-displayed one. If no queries after the current one exist, the button will appear darker.
View Document Perform the query and show results on a form. Queries can also simply be activated by pressing the Execute/Run button.
 

3.1 Sorting and hiding results

The Report Configuration button, located at the bottom of the screen, opens a new pop-up menu to modify the column visualization (hiden/unhiden) or to sort rows by column values (ascending/descending).

A quick way to sort by columns is to use the arrows next to each column heading (both numerically and alphabetically). For this purpose, follow the next steps:

  1. Select the heading of the column that will be used to sort all rows and click on the right blue arrows.
  2. A single green arrow pointing up indicates ascending order.
  3. A single yellow arrow pointing down indicates descending order.
  4. Once the desired option has been selected, select the AZ button in the option upper bar: all the rows will be sorted by the selected column.

To quickly hide a column, it is only necessary to click on the red X that appears in the header of the column. To return to visualize the columns, click on the Report configuration button.