Database

Federated Query

A federated query is a single query that pulls and combines data from multiple separate databases or data sources as if they were one system.

In Depth

Federation answers questions that no single database can: joining customers in Postgres against support tickets in another system, in one query, without first copying everything into a warehouse. Engines like Trino and Presto, and features like Postgres foreign data wrappers, make this possible by translating one query into sub-queries against each source and stitching the results. The appeal is skipping ETL; the catch is performance—cross-source joins move data over the network and can be slow. Federation suits occasional cross-system questions, while frequently combined data usually still belongs in a warehouse.

How AI for Database Helps

AI for Database connects to each of your databases directly, giving you one plain-English interface across all of them without building a federation layer.

Related Terms

Ready to try AI for Database?

Query your database in plain English. No SQL required. Start free today.

Free plan available · No credit card required