> For the complete documentation index, see [llms.txt](https://doc.dataflake.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dataflake.co/query/add-a-query.md).

# Add a query

To add a query:&#x20;

1. Choose **Queries** tab&#x20;
2. Click **Add** button to add a query
3. Choose the connection&#x20;
4. Fill in the query name.&#x20;
5. You can choose cache time. Cache time help us display the dashboard faster for viewer, and reduce the load for your database server.
6. Write your SQL in the query box. You can view Schema and Table to help you while you are executing your query
7. After completing these steps, select **Next** to finish the process

That’s done, you already add a query to Dataflake!

<figure><img src="/files/AWP7tTJiw3dbdRAAYqkT" alt=""><figcaption></figcaption></figure>
