# Data Preview

The Data Preview feature generates a query that returns the first 10 records of a table or column. This gives users a quick glimpse of what data is present before writing a query.

To generate a Data Preview, follow the steps below:

* In the Schema Explorer, hover over any table or column name.
* Click the kebab (3 dots) icon that appears.
* Click **Data Preview**
* A new tab will open, displaying the first 10 rows of the selected table or column.

{% hint style="info" %}
Ensure that an active cluster is selected before generating a Data Preview
{% endhint %}

{% hint style="warning" %}
Do not write your final query in the tab opened using Data Preview as it will not auto-save, and there is a risk of losing work.
{% endhint %}
