TEPUN

View & Edit Script

Access and modify the underlying SQL query.

View & Edit Dataset Script

Access and modify the underlying SQL query directly in Tepun AI Report Builder.

Viewing the Script

  1. Open the Dataset — Navigate to the dataset detail view
  2. Click View Script — Opens the SQL query viewer
  3. Review Components:
    • SELECT: Which columns are retrieved
    • FROM/JOIN: Tables and relationships
    • WHERE: Filter conditions
    • GROUP BY: Aggregation grouping
    • ORDER BY: Sort configuration

Editing the Script

  1. Click Edit Script — Enable editing mode
  2. Modify the Query:
    • Add columns: SELECT *, new_column
    • Add joins: LEFT JOIN related_table ON...
    • Add conditions: WHERE amount > 1000
    • Add calculations: price * quantity AS total
    • Add window functions: ROW_NUMBER() OVER(...)
  3. Validate — Click Validate to check for syntax errors
  4. Save Script — Apply changes to the dataset

Power User Tip: Use Ask AI to generate the initial query, then edit the script for advanced modifications at report.tepun.com.

Learn how to transform your data.

Build it with AI

Stop writing SQL. Build your first Tepun report in minutes.

Try it Free

Experience the future of AI Analytics

Connect your database to Tepun AI Report Builder and get instant insights at report.tepun.com.

Create My First Report
Back to All Documentation