Building Queries

Sometimes you're looking for data that's simple and straightforward. For instance, you want to find all high-priority tasks that have not been started. But at other times, you may want to create more complex filters to zero in on very specific information.  You might want to find any of the following:

The good news is that you can you create very basic or more advanced criteria using the same filtering interface.

Note: The filtering interface described in this topic is currently available only in the Report Builder

Understanding the filtering interface

The Report Builder filtering interface lets you build each line of criteria, specifying the field you want, an operator, and a matching value. You use the plus and minus signs to add and remove lines of criteria. And, you can use the new set icon to create groups, or sets of filters that you want QuickBase to evaluate together.

icons.png

What is a set of filters?

You can create sets of filters, which are basically groups of rules that should be evaluated together. Within each set, you can tell QuickBase to find records that match either:

To create a new set of filters, enter the first line in your new set, then click the new set icon.

addset.png

After you click the new set icon, QuickBase creates a new set, using the line you entered as the first line of set, as shown below.

newsetadded.png

Within any set, you can specify whether any or all  conditions must be true for QuickBase to find a match.

 

all_callouts.png

any.png

 

You can nest up to three levels of filter sets, as shown below:

threelevels_callouts.png

Building a simple query

Use the sample data in the Project Manager Plus template and follow the steps in this section to find:

All high priority tasks that are a high priority AND that will be either started OR due within the current week.

  1. In the Project Manager Plus application, choose Tasks > Create a New Report.

  2. Create this criterion: Priority > is equal to > the value > high.

  3. Click the plus sign to add a new line.

  4. Create this criterion: Start > is during > the current > week, and click the new set icon newseticon.png on the left.

    QuickBase indents this line and creates a new set of criteria, as shown below:

adinganewset.png

Note that the operator for the new set defaults to OR. You could change this, if you like. However, OR is the correct operator for this example.

  1. For the second line in the set, create this criterion: Due date > is during > the current > week.

  2. Either save the report or choose Display. QuickBase displays a report with the specified data.

Building a complex query

Here's an example of a more complex query using an application that tracks real estate listings. This query finds records that match the following criteria:

You can watch a demonstration of how to build this query, or view images of the filters that build each part of the query.

Watch a demo

 

View  each part of the query

Here's what the query for part 1 looks like:

firstquery.png

To add the part 2, you need to add a new set of filters; one that will evaluate whether listings have either a basement or a garage. To do so, you could click the plus sign to add a new filter and add the new line, then, click the new set icon to create a new set:

addnewset.png

When you click the new set icon, QuickBase creates a new filter set. You can complete the set as follows:

part2.png

To add part 3, you need to add a set within a set. Click the plus sign icon to add a new line at the top level:

newlineafterset.png

Then click the new set icon in the new line that appears...and within the new set, click the new set icon once again. The resulting screen looks like this:

setwithinset.png

The final query looks like this:

finishedquery.png

Related Topics

 

Return to top   

© 1999-2012 Intuit Inc. All rights reserved. Legal Notices.