Skip to main content

Working with Queries

A Query pulls data from a DatasourceA connection from Informer to a database or other system of record, such as PostgreSQL, SQL Server, or UniVerse.. Its two main parts are Fields, the columns it returns, and Criteria, the conditions that decide which rows come back. Build a Query visually with the Query Designer, or write the statement yourself in Native SQL.

The Query Designer editor: the data preview fills the page, with a left rail listing the query-building sections (Fields, Mapping, Aggregate Fields, Criteria, Order By, Row Limit, Distinct Values, Inputs, Flow Steps)
The Query Designer, with the building blocks in the left rail.

Why Queries matter

A Query is the question you ask a DatasourceA connection from Informer to a database or other system of record, such as PostgreSQL, SQL Server, or UniVerse.. Get the Fields and Criteria right once, and that question can feed a DatasetA saved, queryable collection of data pulled from one or more Datasources. Datasets are the foundation for reports, dashboards, and AI data analysis., drive a Report, or run on demand for a quick, live answer. The same builder produces both kinds of Query, so the skills you learn here carry across everything Informer reads from a database.

The two kinds of Query

Dataset QueryAd Hoc QueryA saved, parameterized query in Informer. Together with Datasets, Ad Hoc Queries are the data foundation Magic Reports build on.
Stores results?Yes, indexed and reusableNo, results are live and short-lived
Who sees the resultsAnyone with access to the DatasetOnly the user who ran it
Can save Visuals?YesNo
Best forOne source of truth shared across ReportsFast, temporary answers with run-time parameters

Both run against a Datasource, both have Fields, Criteria, and Flow Steps, and both are built the same way. An Ad hoc Query is a kind of Report; a Dataset is its own category of content. You can convert an Ad hoc Query into a Dataset Query when you decide its results are worth keeping.

The building blocks of a Query

The Query Designer's left rail breaks a Query into the pieces you can shape:

BlockWhat it does
FieldsThe columns the Query returns, drawn from the Datasource's mapping.
CriteriaThe conditions (Where clauses) that filter which rows come back.
Order ByThe sort order of the results.
Row LimitA cap on how many rows the Query returns.
InputsRun-time parameters that prompt the person running the Query.
Flow StepsPost-query transformations: add Fields, reshape, combine, and more.

In this section

ChapterIn one line
OverviewWhat a Query is, and Ad hoc vs. Dataset Queries.
Fields and ActionsAdd Fields, aggregate Fields, field options, and Query actions.
CriteriaFilter which records a Query retrieves.
Order By and Row LimitSort results and cap the row count.
InputsRun-time parameters that prompt for a value.
Flow StepsReshape results after the query runs.
Viewing DataField options while viewing a result set.
Filtering DataPost-query Filters: create, configure, and save.
ActionsExport, copy, bundle, benchmark, and organize.
AppendixDate keywords, Saved Lists, and Power Script variables.

Where do I look when...

You want to...Where
Build a new QueryOverview
Choose which columns appearFields and Actions
Narrow the rows returnedCriteria
Prompt the runner for a valueInputs
Transform results after the query runsFlow Steps
Narrow the results without changing the QueryFiltering Data
Export, bundle, or organize a QueryActions
Keep a Query's results for reuseconvert it to a DatasetA saved, queryable collection of data pulled from one or more Datasources. Datasets are the foundation for reports, dashboards, and AI data analysis.
Also available through the REST API
Everything on this page is built on Informer's public REST API, the same one the product uses, so your scripts and integrations can do it too. Developer reference: Queries.