SQL Lab

From Datonis
Revision as of 05:07, 5 February 2021 by Aditya (talk | contribs) (Updated the video link. Earlier link was broken.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

About SQL Lab

SQL Lab is a modern, feature-rich SQL IDE. Using this, the user is able to look at his/ her data tables, create joins on existing tables, and can visualize these modified tables to get additional insights.

This can be accessed by going to 'SQL Lab' button present at the top of the Datonis BI toolbar or by clicking on the '+New' button and selecting 'SQL Query' at the top right of the page.

Accessing the SQL Lab

Components of SQL Lab

There are 3 components available that are explained below:

  1. SQL Editor - This is the IDE where-in the user can write his/ her own SQL queries.
  2. Saved Queries - Once the user has created the queries and he/ she wish to run the same query then he/ she can save the query and rerun it by accessing it in the 'Saved Queries' tab.
  3. Query Search - This feature lets the user search for his/ her queries by a user, database, and date of creation.

SQL Lab Usage

The SQL Query page gives the user a detailed look into his/her databases, the tables present for that database, and the SQL Query pane to write queries. There are 3 sections in the SQL Query page.

  1. Datasource/ Table Pane - marked in Red
  2. SQL Query Editor Pane - marked in Blue
  3. SQL Query Output Pane - marked in Green
SQL Editor Panes
The user is able to write his/ her own queries in the SQL Query Editor pane, check the output in the SQL Query Output pane and modify if required. The user can then choose to save the query for future use from the 'Save Query' option or he/ she can directly view the query results in a chart using the 'Explore' button.

For more details on how to create charts, please visit Create your own custom dashboards.

The user also has an option to download the Query result as a CSV file for further analysis using '.CSV' button at the top of SQL Query Output pane.

Example video for writing a SQL query and visualizing the results

Here is an example video of how the user can write a SQL query and using the query output quickly visualize the data using a chart.