View & Edit Dataset Script
Access and modify the underlying SQL query directly in Tepun AI Report Builder.
Viewing the Script
- Open the Dataset — Navigate to the dataset detail view
- Click View Script — Opens the SQL query viewer
- 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
- Click Edit Script — Enable editing mode
- 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(...)
- Add columns:
- Validate — Click Validate to check for syntax errors
- 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.