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

# FROM and SHOW

> Choose the dataset and list the metrics your report shows.

Every query starts with `FROM` and `SHOW`. `FROM` names the [dataset](https://docs.queryful.app/queryfulql/datasets/overview.md), such as `sales`, `orders` or `inventory`. `SHOW` lists the metrics you want, separated by commas.

```sql theme={null}
FROM sales
  SHOW net_sales, orders, average_order_value
```

## Renaming a column

Add `AS "Label"` after a metric to give its column your own heading. The label shows wherever the column does, including exports and scheduled reports.

```sql theme={null}
FROM sales
  SHOW net_sales AS "Revenue", net_items_sold AS "Units"
```

## Calculated columns

`SHOW` also takes calculations over its metrics, with `+`, `-`, `*`, `/`, numbers and brackets. Multiplication and division happen before addition and subtraction, and dividing by zero gives an empty value rather than an error. Give a calculated column a label with `AS`.

```sql theme={null}
FROM sales
  SHOW net_sales, net_items_sold, net_sales / net_items_sold AS "Net sales per item"
```

For a calculation you use often, make it a [custom metric](https://docs.queryful.app/user-guide/reports/custom-metrics.md) instead, and it's available in every report.

## Combining datasets

List more than one dataset in `FROM`, separated by commas, for metrics from each in one report. Each dataset is totalled on its own, and the results are matched on the dimensions in `GROUP BY`, which every listed dataset needs to have.

```sql theme={null}
FROM sales, discounts
  SHOW applied_discounts, discounted_orders, net_sales
  GROUP BY discount_name
```

Which metrics you can show depends on the dataset. Its page lists them all.


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