View & Edit Data Report Script
Access and modify the underlying SQL query in Tepun AI Report Builder.
Viewing the Script
- Open the Report — Navigate to data report
- Click View Script — Open script viewer
- Review SQL:
- SELECT: Columns retrieved
- FROM/JOIN: Tables and relationships
- WHERE: Filter conditions
- ORDER BY: Sort configuration
Editing the Script
- Click Edit Script — Enable editing
- Modify Query:
- Add columns:
SELECT *, new_column - Add joins:
LEFT JOIN related_table - Add conditions:
WHERE amount > 1000 - Add calculations:
price * quantity AS total
- Add columns:
- Validate — Check for errors
- Save Script — Apply changes
Full Control: Script editing gives technical users complete SQL access at Tepun reports.
Learn about exporting and scheduling.