# From Model

## What does it do?

It allows you to reference the output of another model in your Flow, bringing you composition capabilities without a headache.

## How to use it?

You simply use it by dragging and dropping any previously created **Model** (SQL or Flow) in the **View Selector.**

<figure><img src="https://34758050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MC1g4I2_CgXd0qAq1P7%2Fuploads%2FKLXyHkh7exIjmx9I20m5%2FScreen%20Cast%202022-09-08%20at%203.05.26%20PM.gif?alt=media&#x26;token=5293fdf7-7782-49b6-9136-94955d9f6cff" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Note: A model cannot reference itself
{% endhint %}

## How to configure it?

There are no configuration option for this step.

## Rendered SQL

If the model is not materialized in your warehouse:

```sql
SELECT * FROM (<IMPORTED MODEL SQL>)
```

If the model is materialized in your warehouse as a view or a table we run:

```sql
SELECT * FROM database.schema.table
```
