# Federated SQL Query

<figure><img src="https://692214342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc71sWdWMqp1e_rsTZE-129938315%2Fuploads%2FU3ko8Bj4k9DUzNpyHvmM%2FSpice.ai%20Federation%20and%20Acceleration%20.png?alt=media&#x26;token=465a137a-e019-45ad-a5a6-ef24bab00d43" alt=""><figcaption></figcaption></figure>

Spice supports federated queries, enabling you to join and combine data from multiple sources, including databases (PostgreSQL, MySQL), data warehouses (Databricks, Snowflake, BigQuery), and data lakes (S3, MinIO). For a full list of supported sources, see [Data Connectors](https://docs.spiceai.org/components/data-connectors).

## SQL Query

### Playground SQL Explorer

The Playground SQL Explorer is the fastest way to get started with federated queries, debugging queries, and iterating quickly. The SQL Query Editor be accessed by clicking on the **SQL Explorer** tab after selecting **Playground** in the app navigation bar.

<figure><img src="https://692214342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mc71sWdWMqp1e_rsTZE-129938315%2Fuploads%2FVh6OjcPyWegiW9EUbjPN%2FCleanShot%202026-01-09%20at%2000.43.27%402x.png?alt=media&#x26;token=1ff2e1e3-29e9-42e2-a46a-016ebb1a0a52" alt=""><figcaption><p>The Playground SQL Query Editor.</p></figcaption></figure>

See [sql-query-editor](https://docs.spice.ai/portal/playground/sql-query-editor "mention") for further documentation on using the SQL Query Editor.

### Apache Arrow Flight API

For production applications, leveraging the high-performance [Apache Arrow Flight](https://docs.spice.ai/api/sql-query/apache-arrow-flight-api) endpoint is recommended. The Spice SDKs always query using Arrow Flight.

See [apache-arrow-flight-api](https://docs.spice.ai/api/sql-query/apache-arrow-flight-api "mention") for further documentation on using Apache Arrow Flight APIs.

### HTTP API

SQL Query is also accessible via a standard HTTP API.

See [http-api](https://docs.spice.ai/api/sql-query/http-api "mention") for further documentation on using the HTTP SQL API.
