> ## Documentation Index
> Fetch the complete documentation index at: https://docs.brewit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Query Library

> Query library is useful for saving and reusing frequently used SQL queries.

<Warning>
  **Boost Your Data Workflow** Query library streamline your data analysis
  process, allowing for quick access to frequently used queries and efficient
  data exploration.
</Warning>

## Creating and Saving Query Library

Query library is a powerful feature that enhances your data exploration efficiency. Learn how to create, save, and utilize your SQL queries within Brewit.ai.

<Steps>
  <Step title="Create a SQL Query">
    Start by writing your SQL query. Include a meaningful title and a brief
    description to help you and your team understand the query's purpose at a
    glance.
  </Step>

  <Step title="Run and Test Your Query">
    Before saving your query, run a test to ensure it executes as expected. Look
    for any errors or unexpected results, and refine your query accordingly.

    <Frame>
      <img src="https://mintcdn.com/brewit-84/pyjAYulKSUrvhjf5/images/screenshots/saved-query.png?fit=max&auto=format&n=pyjAYulKSUrvhjf5&q=85&s=ccf97e18e37055bd5a2b92f22cab6741" alt="Run Query" width="2408" height="1456" data-path="images/screenshots/saved-query.png" />
    </Frame>
  </Step>

  <Step title="Save Your Query">
    Once satisfied with the results, save your query for future use. This saves
    time and effort when you need to run similar analyses or when your team
    members require access to the query.
  </Step>
</Steps>

## Benefits of Query Library

Query library come with several benefits that significantly improve your data analysis workflow.

* **Efficiency**: Quickly access and run your most used queries without having to rewrite or look them up each time.
* **Collaboration**: Share your saved queries with team members, fostering collaboration and ensuring consistent analysis across your team.
* **Organization**: Keep your queries well-organized with titles and descriptions, making it easier to find and use the right query when needed.
