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

# SHOW FACTS, METRICS, DIMENSIONS, and COLUMNS

> List the facts, metrics, dimensions, or combined declared columns of a semantic view.

## Description

Lists the declared facts, metrics, dimensions, or their combined set for one semantic view. `SHOW COLUMNS` returns facts first, then metrics, then dimensions. When its target is a regular table, `SHOW COLUMNS` keeps its existing table-column behavior.

## Syntax

```SQL theme={null}
SHOW FACTS FROM [<catalog>.][<database>.]<semantic_view>
SHOW METRICS FROM [<catalog>.][<database>.]<semantic_view>
SHOW DIMENSIONS FROM [<catalog>.][<database>.]<semantic_view>
SHOW COLUMNS FROM [<catalog>.][<database>.]<semantic_view>
```

## Return value

All four statements use the same columns. Fields that do not apply to a declaration are empty or `[]`.

| Column | Description |
| - | - |
| `Type` | `FACT`, `METRIC`, or `DIMENSION`. |
| `Name` | Declared semantic field name. |
| `Table` | Logical table alias that owns the field. |
| `Expression` | SQL expression that defines the field. |
| `Access` | `DEFAULT`, `PRIVATE`, or `PUBLIC`. |
| `IsFilter` | Whether the declaration has the `FILTER` label. |
| `Synonyms` | Synonyms as a JSON array. |
| `Comment` | Declaration comment. |
| `SampleValues` | Sample values as a JSON array. |
| `UsingRelationships` | Relationships named by a metric's `USING` clause, as a JSON array. |
| `NonAdditiveBy` | Sort keys named by a metric's `NON ADDITIVE BY` clause, as a JSON array. |
| `IsWindow` | Whether the metric is a window metric. |
| `SearchService` | Cortex Search service associated with a dimension. |
| `SearchColumn` | Cortex Search column override associated with a dimension. |

## Examples

```SQL theme={null}
SHOW FACTS FROM sales_db.order_metrics;
SHOW METRICS FROM sales_db.order_metrics;
SHOW DIMENSIONS FROM sales_db.order_metrics;
SHOW COLUMNS FROM sales_db.order_metrics;
```

## See also

* [CREATE SEMANTIC VIEW](/documents/4.2/sql-reference/sql-statements/semantic-view/CREATE_SEMANTIC_VIEW.md)
* [SHOW SEMANTIC VIEWS](/documents/4.2/sql-reference/sql-statements/semantic-view/SHOW_SEMANTIC_VIEWS.md)
* [Semantic View YAML REST API](/documents/4.2/sql-reference/semantic_view_yaml_api.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.