This page describes how an Admin user can use the TetraScience Data Platform (TDP) to query Athena SQL tables.
To query the available Athena SQL tables, you use the SQL Search page:
- In the TDP, click the Hamburger icon at the top left corner of the page to expand the TDP menu options (or hover over the list of icons to display the menu options).
- After clicking the Hamburger Menu icon, the icon changes to an X. Select SQL Search from the list of menu options that appears on the left side of the page.
From the SQL query editor and results page, you can:
- View the SQL table structure and definitions
- View the first 100 rows of content
- Generate custom queries
- Export results to a CSV file
To view the structure of a table:
- From the left side of the page, click the menu button next to the table for which you want to see its table definition.
- Click View table info to open the Table definition pane which shows this information:
- Table name and time when table was created, last updated, and last accessed
- Names of table columns and their data types
- Parameters (such as the type of file or classification) and whether it contains encrypted data
- When you are finished reviewing the table data, click Close.
To view the first 100 rows in a table:
- From the left side of the page, click the menu button next to the table for which you want to select the table rows.
- Click SELECT first 100 rows. The SQL query is automatically generated and begins to run.
- Once completed, query results display in the Results table below the SQL query editor.
To create a custom query:
- Determine which table or tables you want to query. To review information about the SQL table structure and details, navigate to: Account > SQL Access.
Waters Empower Tables
Click here for Waters Empower Table Structure and Relationships.
- Select SQL Search from the list of menu options again to return to the SQL query editor and results page.
- Enter your query in the SQL query editor text box. For syntax assistance, click the SQL syntax documentation link above the text box.
- Click Run Query.
- If the query is valid, the results display in the Results section.
- If there is a issue with the query, an error display in the Results section. Review the error message to fix the query, and then click Run Query again.
To export SQL query results to a file in CSV format:
- From the SQL Query page, enter your query in the SQL query editor text box. For syntax assistance, click the SQL syntax documentation link above the text box.
- Click Run Query.
- To export a successful query's results to a CSV file format for easier data analysis (for example, to a spreadsheet), click the small export icon above the Results table to download and export results.
Once the results have been downloaded, you can open the file in your text reader or import it in your favorite spreadsheet application.
Updated 5 months ago