[Yandex Cloud documentation](../../index.md) > [Yandex Data Streams](../index.md) > [Concepts](index.md) > Transactions involving data streams and YDB tables

# Transactions involving data streams and tables

Data Streams supports transactions that involve YDB data streams and tables. Any data stream or table involved in such a transaction must be located in the same YDB DB. In this way, you can employ transactions to move data from tables to data streams and vice versa. Also, you can do so between data streams to avoid your data beings lost or duplicated even under unforeseen circumstances.

Learn more about transactional operations involving data streams in [this YDB guide](https://ydb.tech/docs/en//concepts/transactions#topic-table-transactions).