Skip to main content

Send database query from the user interface

Zuora

Send database query from the user interface

You can use the Data Query Utility feature to run basic queries to query the data from the tables instead of logging into the database. This utility takes input as a query and displays the result set in the grid. You can create new data queries, save data queries, and view the query log from the Data Query Utility UI.

Overview

To access the Data Query Utility page, navigate to Reports > Data Query Utility from the main menu. The UI page opens with multiple tabs.

From this UI page, you can do the following things:

  • Create and execute a query
  • Save a query
  • View the query logs

Send database query

In the Query Data tab, you can create new data queries and execute them to get the result. You can export the query data from your database.

To create a new data query, complete the following steps:

  1. Navigate to Reports > Data Query Utility.

  2. In the Query Data tab, enter a query on the query field and click the execute icon icon-save-green.png. Upon success, the result is displayed in the lower half of the UI.

Query_Data.png

  1. (Optional): To filter the result at the column level, click the Toggle Row Filter icon icon-toggle-row-filter.png and then type the keyword in the target column.

  2. (Optional): To export the queried data, click the Export All Data icon icon-export-all-data.png. The data will be exported to a file and downloaded to your local system.

Save a query

When you create a query, you can save the query. You can then re-run the saved query in the future without constructing the query again. You can access all the saved queries in the saved query tab.

To save your query, complete the following steps:

  1. In the Query Data tab, construct the new query and click the save icon icon-new-save.png .

  2. In the Save Query dialog, enter a name for the query in the name field and then click Save.

  3.  To re-run the saved query, select the query from the Saved Query dropdown list in the Query Data tab.

All the saved queries are also displayed in the Saved Query tab.

View the query log

You can use the Query Log tab to view the data queries that are submitted in the Query Data UI. This tab displays all the queries that are entered in the Query Data tab.

View_Query_log.png

Limitations

Be aware of the following limitations when you work with the Data Query Utility:

  • Only specific SQL queries or functions can be supported. For example, the functions should contain aliases and no DMLs. Sequence objects are not allowed in the queries.
  • Use proper aliases to query tables, views, functions, and expressions.
  • The UI session timeout is set to one minute. The timeout duration can be extended to a maximum of two minutes only by requesting Zuora Global Support.
  • A maximum of 5000 records can be exported and viewed in the UI. Exceeding this limit results in performance issues in the UI.
  • Export functionality works only if the query is run successfully. Unsuccessful queries might show incorrect column names in the exported data.