Understanding your SQL Exploration

  • Updated

Let's see how each element of the SQL Explorer UI is configured.

Catalog

The Catalog for an application is a repository of metadata objects arranged in folders. Users can view portions of the Catalog based on their permissions.

sql-catlogue-f2fbeb5d72519c906b2fc9f4580a7ff3.png

In SQL Explorer, you can use the Catalog section to browse and select data for exploration. You can accomplish this in three ways:

  • By double-clicking on the columns in the tree-view.

    sql-doubleclick-d117ebcf3d07f5a5ec625f6951975bf6.gif
  • By dragging and dropping the columns into the Query Builder.

    flix-sql-intr-4-4706e7d1eedfef2fa42c2285d87f9a32.gif
  • By clicking the three dots next to each catalog item and choosing the required option.

    sql-option3-a8e357c94bf70aa2b91ea75e0b38340c.gif
  • You can also use the Show/Hide Catalog button (hamburger menu) at the top to toggle the view based on your preference.

Query Builder

The Query Builder provides you with a query shelf that allows you to add the SQL query for exploration. It comes with an auto complete feature to add objects quickly.

sql-catalog-0dcacf95eae87792df02e53fa841f1a2.png

Visualization Module

The Visualization module enables you to view the results of executing the defined query. It also allows editing visualization, examining the underlying SQL query, and adding the chart to a dashboard.

sql-viz-module-009ac8dfcbdbc8d548c587c1e64b0bf8.png

Edit visualization section

Clicking the three dots next to the lightning icon displays a drop-down with 4 options - Inspect Query, Add to Dashboard, Edit visualization, and Download As.

  • Inspect Query - When you click this option in the drop-down, a query inspector opens. It has three tabs - SQL, Warehouse SQL, and NetScript. You can make changes to the SQL and NetScript queries by clicking the Open as SQL Explore and Open as NetScript Explore buttons in the respective sections.
  • Add to Dashboard - This option allows you to add the exploration that you have created to a dashboard. You can choose from two options - Pick a dashboard and New Dashboard.
  • Edit visualization -​ This section houses all the chart settings. It has 2 sub-sections: Visualization and Sorting.
    • Under visualization, you can configure:
        • Automatic refresh for your chart
        • Chart type
        • X-axis and Y-axis configuration
        • Tooltip
        • Size configuration
    • Under sorting, you can
        • Enable the sorting option on the graph
        • Configure sorting rules and the limit
  • Download As​ - This option will let you download your analysis in either CSV or EXCEL format. The column formatting will be preserved for the downloaded files as well.
edit-visn-sql-c647cd9d0ac94e83f9c5800086bce089.gif