Quattro Pro has several Database Tools which allow simple database queries, reports and sorting of fields.The structure of a Quattro Pro database is as follows: The first row contains a list of all the field names, such as FirstName, LastName, etc, where each field name should be up to 63 characters with no leading or trailing spaces and must be unique. Each subsequent row is a record in the database. There should be no blank rows, including the first row below the field names, and the block should be continuous, in one spreadsheet page. The database can have up to 256 fields and contain 8191 records.
The form allows you to search for certain criteria. Click the [Search] button, type the criteria next to the field name and press Enter. Quattro Pro then takes you to the first occurrence which fits this criteria, the [Go Next] button takes you to the next occurrence, etc. The search results are only for your editing purposes, Database queries are explained in detail below.
The search criteria can include logical operators, i.e. = (equal), <> (not equal), >= (greater than or equal), > (greater than), <= (less than or equal), < (less than). For example, FirstName <Anthony will find all records whose first name is less than Anthony, e.g. Anne, Andrew, Adrian, Abigail, etc.
There are two methods to do this:
1. Select [Tools][Database Tools][Query]. Select the database block (the field names and data) and click on the [Field Names] button. The field names are then added to the list of block names available.
2. Select [Block][Names] click on [Labels]. Select the block of field names and click on [Down] radio button. Choose [OK] and see the names added to the block names available.
For example:
Country | Surname |
---|---|
England | S* |
Finds all records with country = England and surname beginning
with S.
|
It is a good idea to name the block 'Criteria' as then it is easier to refer to.
If you have two different criteria on the same line, it is equivalent to Criteria1 *AND* Criteria2. For example, in the criteria table above, the query finds all entries with the surname beginning with 'S' who are resident in England. If the criteria are on separate lines, then the query will find matches to either of the criteria, equivalent to an *OR*.
Tip! Beware that if you edit the criteria table, and remove a line of an alternative (OR) criteria, you must re-define the criteria table block size. Otherwise the blank line will be included as an OR criteria, which of course, all records in the table satisfy!
Click Extract to extract the data which fits the specified criteria. Close the dialogue box and go to the output page to view the results of the query.
The program first asks the data block that you want to query and the block in your spreadsheet to output the data to. The program then loads the data and opens up several tools for report writing.
The gadget 'Limit' is where you can specify criteria for the data query, making the criteria equal, greater than, containing, etc. The report can have side and top bars specified for a flexible layout, and include as many or few of the data fields in which ever order is preferred.
When you are happy with the layout and results of the query, select [Edit][Copy to Quattro Pro] and the information will be put into the spreadsheet in the block you specified on launching the data modelling desktop.
Next Page > > > |