Data queries overview

Write queries that interact with data and use JavaScript almost anywhere.

Retool interacts with your data using queries. Write SQL statements, perform API requests, and transform returned data using JavaScript.

Get started

Learn how to write an SQL query, then start querying your own data sources.

Transform data

Transform data with JavaScript or Query JSON with SQL.

Optimize queries

Write efficient queries to reduce overhead and increase performance.