- Verify that your data sources are connected correctly
- Explore the columns and data types that are available in your data sources
- Search for specific data in your data sources using the SQL Editor, the Query Builder, or the AI Generator.

Use the SQL Editor
The SQL Editor allows you to create, modify, and save queries.For instructions on using the Query Builder to build queries, refer to Query Builder.
Create a Query in the SQL Editor
Follow these steps to execute a query using the SQL Editor in the Data Explorer:1
Click Select a Connection to open a drop-down menu of your connections.
2
Select a connection. All available items appear in the left column.
- The solid table icon indicates a table.
- The dashed square icon indicates a view.
- The blue double document icon to the right of the item indicates that the item is being cached. See Caching for more information.
3
Choose the data that you want to query. If you want to use the AI query generator, refer to the AI Generator documentation.
The SQL Editor also autocompletes connection, schema, and table names. Once you pick a connection, autocomplete lets you select a schema from a drop-down list. You can then select a table within the schema.
- To create a query that selects an entire table or view, drag the item from the left column to the query editor. Alternatively, click the three dots next to the table or view and select Query for results or View Details for metadata information.
- To select a specific column, click the expansion arrow next to the item that you want to query. Then, drag the column to the query editor.
- Some data source types contain SQL templates for commonly-used queries. These queries appear under Common Queries when you expand the connection name. Click the three dots next to the query name and click Query to view the query. You can edit the query if needed. Click Execute to run the common query. Alternatively, you can enter a query manually by using SQL syntax in the SQL Editor. Connect AI has an autocomplete feature to assist you with SQL syntax.


4
Set the Limit field to the number of results that you want to return. By default, the limit is 100. You can set any limit, but you MUST enter a value in this field. (Do not use the SQL LIMIT clause.)
5
Click Execute to run the query.


Modifying a Query
After a query executes, you can perform the following actions:- Modify the query manually by entering query parameters into the query editor.
- Clear the query editor by selecting Clear and then clicking OK in the prompt that is displayed.
- Generate a new query by dragging a new table or column into the query editor and clicking OK in the prompt that is displayed.
Saving a Query
Data Explorer provides the ability to save queries and return to them later without the need to re-enter the query parameters each time. After you create and successfully execute a query, the Save button at the top of the Data Explorer pane becomes available. Follow these steps to save a query and access it later:1
Click Save > Save as Saved Query. The Save Query dialog appears.
2
Enter a name for the query and click Confirm.
3
The Data Explorer Saved Queries menu opens, and your newly-saved query appears in the list.
Use Saved Queries
Saved queries are available in the Saved Queries folder in the Data Explorer navigation pane, and saved derived views are available in the Derived Views folder. To execute a saved query, click the three dots next to the saved query name and select Query. The contents of the saved query populate in the Query Editor, and you can click Execute to retrieve the results.The Details tab, which contains metadata, is not available when executing saved queries.
Configure Derived Views
The derived views feature of Data Explorer allows you to create and save queries that return dynamically populated data results from your connections. You can query your saved derived views from Integrations, and the results automatically update when the data in your connections change.Only administrators of Connect AI can create or modify derived views. Query users can query saved derived views created by an administrator.
Create a Derived View
To create a new derived view, follow these steps:1
Create the query in the Query Builder or SQL Editor. After you execute the query, the Save button appears. Click Save > Save as Derived View. The Create Derived View dialog appears.
2
Enter a name for the derived view in the View Name field. This is the name that appears in the list of saved derived views.
3
Click Confirm to save the derived view.
Accessing a Derived View in Integrations
When issuing queries to a derived view from within an integration tool, set the Connection or Database value to CData. The following syntax shows the correct fully-qualified syntax for accessing a derived view:Accessing a Derived View in Data Explorer
After you create a derived view, it appears in the list of derived views in Data Explorer. You can click the three dots next to the entry in the list to open a list of options.
- To execute the query, click Query. The contents of the derived view appear in the Data Explorer query view, and you can then click Execute to view the query results.
- To return metadata, click View Details. This action automatically executes, and the results populate under the Details tab.
- You can click Rename to change the name of the derived view, or you can click Delete to remove it from the list.
Modify a Derived View
To modify the query of a derived view, use one of the methods outlined above to access it. With the derived view open, modify the text in the query field as needed and click Save Changes at the top of the Data Explorer. To rename a derived view, click the three dots next to the entry in the list and select Rename. Enter the new name in the dialog that appears and click Confirm.Delete a Derived View
To delete a derived view, click the three dots next to the entry in the list and select Delete. In the confirmation dialog that appears, click Delete again.Deleting a derived view does not affect data in the source.
Create Scheduled Queries
You can save a query as a scheduled query. A scheduled query runs at user-defined intervals. To create a scheduled query:1
Create your query using the Query Builder or the SQL Editor.
2
Click Save > Save as Scheduled Query.
3
You then enter the details about the scheduled query, such as how often it runs. See Scheduled Queries for details.