# Fetch Data from DB

{% embed url="<https://youtu.be/XPGJfP9ifoU>" %}
Quick tutorial on Fetcher
{% endembed %}

### Steps to follow&#x20;

1. From the `Processing & Pipelines` module select `Build Pipelines` section.
2. Click the `Fetch Data from DB` button, a popup appears.
3. Frontier allows two option to store the fetched data from database :
   1. `Add a new file` allows user to create a new file when the file doesn't exist in frontier system.
   2. `Modify a pre existing file` allows user to update the old file from the new updated file on the database.
4. Frontier allows two options to fetch data from the database :&#x20;
   1. `Normal Fetch Operation` allows user to write normal select queries from the database.
   2. `Query in Fetch Operation` allows user to combine two or more tables to join them and extract into frontier system. The source key and the file name that has the common key should be given.
5. After the query is written, the `Preview Data button` can be used to check if the connection works and will the data get reflected in the Frontier.
6. Click `Save` button to save the pipeline, or `Save & Execute` button to execute the pipeline right away.

### Walkthrough

{% embed url="<https://www.loom.com/share/d08ddc37c590447aa3c54c0506cd29ee>" %}


---

# 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://fluid-ai.gitbook.io/fluid-ai-frontier/processing-and-pipelines/individual-pipelines/fetch-data-from-db.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.
