docs/versioned_docs/version-3.0.0-LTS/data-sources/athena.md
ToolJet can connect to Amazon Athena which is an interactive query service that makes it easy to analyze data in Amazon S3 using standard SQL.
<div style={{paddingTop:'24px'}}>To establish a connection with the Amazon Athena data source, you can either click on the + Add new Data source button located on the query panel or navigate to the Data Sources page from the ToolJet dashboard and choose Amazon Athena as the data source.
ToolJet requires the following to connect to your Athena.
:::info You can also configure for additional optional parameters. :::
<div style={{textAlign: 'center'}}> </div> </div> <div style={{paddingTop:'24px'}}>:::tip Refer amazon athena docs here for more info: link :::
<div style={{textAlign: 'center'}}> </div> </div> <div style={{paddingTop:'24px'}}>This query is used to create an external table within the database. The data for this table is stored in an S3 bucket at the provided URL (s3://athena-express-akiatfa53s-2022/ in this example).
CREATE EXTERNAL TABLE student (
name STRING,
age INT
) LOCATION 's3://athena-express-akiatfa53s-2022/';
This query is attempting to insert a new record into the student table in a database.
INSERT INTO student
VALUES ('Lansing',1)
This query retrieves all records from the student table where the age of the student is exactly 1 year.
SELECT * from student WHERE AGE=1
This query is used to display a list of all tables in the current database.
SHOW TABLES