Running queries to retrieve data

Top  Previous  Next

When you first open the Run SQL query window, it is not connected to any database.  The Database Connections panel displays two items:

 

Connect to a database - clicking on this item will allow you to connect to your database

Query data sets - this item allows you to run queries on all the currently used data sets.  More details on this here.

 

 

sda_query01

 

To connect to a database, click on the Connect to a database item.

 

sda_query02

 

The Connect to Database window is displayed.  Select the database server type and enter the details to connect to your database.

 

sda_query03

 

Once connected successfully, a new item for that connection is created on the Database Connections panel.

 

sda_query05

 

 

For each connection that you create, an item will be created on the Database Connections panel.

 

sda_sql04

 

 

Clicking on that connection's panel will allow you to enter a query in the SQL editor window and run it.

 

sda_query06

 

To run the query, press F5 or click on the Execute query button.

 

sda_query08

 

 

Once the query has completed, the results are displayed on the bottom panel.  To start analyzing the data set in the analysis tables, click on the Add data sets button.

 

sda_query09

 

 

By default, the Run SQL query window will close, and your data set is displayed in an analysis table.

 

sda_query10