# Querying Azure Synapse Analytics Data

**Prerequisites**:

* [Azure Synapse Analytics integration configured with Immuta](https://documentation.immuta.com/latest/configuration/integrations/azure-synapse-analytics/configure-azure-synapse-analytics-integration)
* [Azure Synapse Analytics tables registered as Immuta data sources](https://documentation.immuta.com/latest/configuration/integrations/registering-metadata/data-sources/register-data-sources/synapse-tutorial)
* `REVOKE` users' access to raw tables
* `GRANT` users' access to the Immuta schema

## Query data

1. Click the **Data** menu in Synapse Studio.
2. Click the **Workspace** tab.
3. Expand the databases, and you should see the dedicated pool you specified when [configuring the integration](https://documentation.immuta.com/latest/configuration/integrations/azure-synapse-analytics/configure-azure-synapse-analytics-integration).
4. Expand the dedicated pool and you should see the **Immuta schema** you created when [configuring the integration](https://documentation.immuta.com/latest/configuration/integrations/azure-synapse-analytics/configure-azure-synapse-analytics-integration).
5. Select that **schema**.
6. Select **New SQL script** and then **Empty script**.
7. Run your query (note that Synapse does not support LIMIT and the SQL is case sensitive). It should look something like this:

   ```sql
   SELECT TOP 100 * FROM immuta_schema.backing_database_backing_table;
   ```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://documentation.immuta.com/latest/governance/data-consumers/query-data/synapse.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
