# Queries

This guide will help you get started with using the Query Editor of Tricloud Nexus to analyze and gain insights from data efficiently.

***

## Introduction

The Tricloud Nexus Query Editor is a powerful tool designed to help users query and analyze data effortlessly. Built on the Azure Data Explorer Query UI, it uses KQL (Kusto Query Language) for efficient data access and exploration.

### Learning Kusto Query Language (KQL)

Here are some links to help you get started with the learning the KQL language.&#x20;

* Kusto Query documentation: <https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/>
* Quick Reference Guide: <https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/kql-quick-reference>
* Kusto Cheat Sheet; <https://techcommunity.microsoft.com/t5/azure-data-explorer-blog/azure-data-explorer-kql-cheat-sheets/ba-p/1057404>

***

### Accessing the Query Editor

1. **Login to Tricloud Nexus**:
   * Navigate to the Tricloud Nexus platform using your browser.
   * Enter your credentials and click **Login**.
2. **Open the Query Editor**:
   * Click on the **Query Editor** tab located in the navigation menu.

<figure><img src="https://570593659-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYMGRODsc2QD3N3wmfwTl%2Fuploads%2F6IBSEY5r97WRgAHfg5qa%2Fimage.png?alt=media&#x26;token=eafd2ef7-4b36-4808-a842-2f80dedca076" alt=""><figcaption><p>Query Editor</p></figcaption></figure>

3. **Select the Database:**&#x20;
   * In the Query Editor, your workspace is pre-configured to access the Azure Data Explorer database.
   * Ensure you have the necessary permissions to query the database.
   * Select the database as seen in the example screenshot above, and take notice that the database is selected above the query editor using the convention *cluster/databasename.*&#x20;
   * In the example above the selection is: tciotadxcluster.westeurope/TimeSeriesSandbox02 which may differ depending on your installation.

***

For more details see the following sections:

* [Database Tables](https://docs.tricloudnexus.io/management-portal/insights/queries/database-tables) Definition of Tables in the database
* [Creating a Query](https://docs.tricloudnexus.io/management-portal/insights/queries/creating-a-query) How to create your first query
  * [Basic Queries](https://docs.tricloudnexus.io/management-portal/insights/queries/creating-a-query/basic-queries) Basic operators
  * [Intermediate Queries](https://docs.tricloudnexus.io/management-portal/insights/queries/creating-a-query/intermediate-queries) Join, Summarize and make-series operators
  * [Advanced Queries](https://docs.tricloudnexus.io/management-portal/insights/queries/creating-a-query/advanced-queries) Trendline and Forecasting

For more details on KQL, please see [Kusto Query Language](https://learn.microsoft.com/en-us/kusto/query/syntax-conventions?view=azure-data-explorer\&preserve-view=true) in Microsoft's documentation.
