# Querying Redshift Data

**Prerequisites**:

* [Redshift integration configured with Immuta](https://documentation.immuta.com/latest/configuration/integrations/redshift/how-to-guides/redshift)
* [Redshift tables registered as Immuta data sources](https://documentation.immuta.com/latest/configuration/integrations/registering-metadata/data-sources/register-data-sources/redshift-tutorial)
* `REVOKE` users' access to raw tables

## Query data

1. Use your tool of choice to connect to Redshift.
2. Select the **Immuta database** name used when [configuring the integration](https://documentation.immuta.com/latest/configuration/integrations/redshift/how-to-guides/redshift).
3. Query the Immuta-protected data, which takes the form of `immuta_database.backing_schema.table_name`:
   1. Immuta Database: The **Immuta database** name used when [configuring the integration](https://documentation.immuta.com/latest/configuration/integrations/redshift/how-to-guides/redshift).
   2. Backing Schema: The schema that houses the backing tables of your Immuta data sources.
   3. Table Name: The name of the table backing your Immuta data sources.
4. Run your query (it is recommended that you use the catalog in the query). It should look something like this:

   ```sql
   select * from immuta_database.backing_schema.table_name limit 100
   ```


---

# 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/redshift.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.
