# Tables in Storage

Tables hold your project's data in Storage. This page explains what a table and an alias are and the rules every
table follows. For tasks such as creating an alias or deleting rows, see [Manage tables](https://help.keboola.com/storage/tables/manage/).


## What a table is

The *Table Storage* for your project is available under the **Tables & Buckets** tab in the Storage section.
All data tables are organized into [buckets](https://help.keboola.com/storage/buckets/) that can also be
used to [share tables](https://help.keboola.com/catalog/) between projects.

The actual data tables and the buckets are created primarily by Keboola components (data source connectors, transformations,
and applications), or they are imported from CSV files. If you want to import data into an already
**existing table**, the imported table must contain all the columns of the existing table, even if the existing
table is empty. If any columns are missing, you will receive an error message similar to the following:

    Some columns are missing in the CSV file. Missing columns: lat,long. Expected columns: lat,long.
    Please check if the expected "," delimiter is used in the CSV file.

The imported file **may** also contain additional columns not present in the existing
table. In that case, the columns from the imported table will be added to the existing table.

Table and column names can contain only alphanumeric characters. Dash and
underscores are allowed. Column names must not start or end with dash `-` or underscore
character `_`.


When you select a table from any bucket in Storage, detailed information about the table will be displayed
at the top of the screen. This is what we refer to as the **table detail** throughout our documentation.

## Aliases

Apart from actual tables, it is also possible to create aliases. They behave similarly to
[database views](https://en.wikipedia.org/wiki/View_(SQL)).

An alias does not contain any actual data; it is simply a link to some already existing data.
Therefore, an alias cannot be written to, and its size does not count toward your project quota.

Alias tables are automatically materialized as physical database VIEWs. This makes them fully accessible in workspaces and
transformations via [read-only storage access](https://help.keboola.com/transformations/mappings/input/#read-only-input-mapping) — no input mapping configuration is required.
Filtered aliases are also supported; the filter condition is enforced as a `WHERE` clause in the VIEW.
In [linked buckets](https://help.keboola.com/catalog/), alias VIEWs from the source project are automatically mirrored to the destination project,
making them immediately queryable there as well.

By default, alias columns are automatically synchronized with the source table. Columns added to the source
table will be added to the alias automatically.
You can prevent this by disabling *Synchronize columns with source table*.

Aliases with automatically synchronized columns and without a filter can be chained.

An alias lives only as long as its source table: deleting a table deletes its aliases too, after a confirmation.
How to create one is in [Create an alias table](https://help.keboola.com/storage/tables/manage/#create-an-alias-table).

## Metadata

Each [Table Storage](https://help.keboola.com/storage/) object (bucket, table, column) has an associated key-value
store. This can be used to store arbitrary metadata (information about the data itself). Apart from
arbitrary user-defined metadata, there is also some information stored automatically. For example,
each bucket and table has information about which configuration of which component created them.
One important use case of metadata is [Column Data Types](https://help.keboola.com/storage/tables/data-types/).
Table and column [descriptions](https://help.keboola.com/storage/tables/descriptions/) live in the table definition and are mirrored into
metadata.

## Incremental loading

Each table may have a **primary key** that identifies its rows: values are deduplicated on load, and with
**incremental loading** new rows are added and existing rows updated instead of the table being cleared. Components
can then use **incremental processing** to read only the rows changed since their last successful run, or within a
time window you set. How this works, with
examples, is in [Primary keys and incremental loading](https://help.keboola.com/storage/tables/incremental-loading/).

## This section

- [Manage tables](https://help.keboola.com/storage/tables/manage/): create an alias, set a primary key, truncate a table, delete rows, change a
  column type.
- [Primary keys and incremental loading](https://help.keboola.com/storage/tables/incremental-loading/): deduplication, incremental loads and
  incremental processing.
- [Table and column descriptions](https://help.keboola.com/storage/tables/descriptions/): where descriptions come from and their limits.
- [Native data types](https://help.keboola.com/storage/tables/data-types/): what typed tables are and how they get created.
- [Data types reference](https://help.keboola.com/storage/tables/data-types/reference/): base types, NULL handling and the table definition.
- [CSV files](https://help.keboola.com/storage/tables/csv-files/): the format Storage accepts and the format it produces.
- [CSV files in Excel](https://help.keboola.com/storage/tables/csv-files/excel/): export a sheet for Storage, open an exported table.
- [Back up and restore tables](https://help.keboola.com/storage/tables/backups/): time travel restore and snapshots.

Table imports and exports pass through File Storage: see [Files in Storage](https://help.keboola.com/storage/files/).

**Next:** [Manage tables →](https://help.keboola.com/storage/tables/manage/)
