---
title: into_values() | Tiger Data Docs
description: Get a table of all frequency estimates from a space-saving aggregate
---

Since [1.16.0](https://github.com/timescale/timescaledb-toolkit/releases/tag/1.16.0)

Return the data from a space-saving aggregate as a table. The table lists the stored values with the minimum and maximum bounds for their estimated frequencies.

## Arguments

The syntax is:

```
into_values(
    agg SpaceSavingAggregate
) RETURNS (AnyElement, DOUBLE PRECISION, DOUBLE PRECISION)
```

| Name  | Type                 | Default | Required | Description                                                                                                                                                                                                            |
| ----- | -------------------- | ------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `agg` | SpaceSavingAggregate | -       | ✔        | A space-saving aggregate created using either [`freq_agg`](/docs/reference/toolkit/frequency-analysis/freq_agg/freq_agg/index.md) or [`mcv_agg`](/docs/reference/toolkit/frequency-analysis/freq_agg/mcv_agg/index.md) |

## Returns

| Column    | Type             | Description                                   |
| --------- | ---------------- | --------------------------------------------- |
| value     | AnyElement       | A commonly seen value in the original dataset |
| min\_freq | DOUBLE PRECISION | The minimum bound for the estimated frequency |
| max\_freq | DOUBLE PRECISION | The maximum bound for the estimated frequency |
