Modifying a Report's SQL query

Figure 13: Modifying a Report’s SQL Query
This feature is recommended for advanced users only and allows you to change the underlying query for a user-defined report by directly editing its SQL query string.
- Highlight the required report from the User-Defined Reports tab and press the Show SQL button on the right-hand side of the tab page.
- A separate window will appear containing the SQL query for the selected report.
- Modify the SQL as required and then press the Parse SQL button. This attempts to execute the SQL and ensures that the syntax is correctly formed before allowing you to save the modified query. If an error occurs with the SQL, you will be re-directed to the application error console. From here, you will be able to determine the exact cause of the error and correct it by pressing your browsers back button.
- Once the SQL query has been modified, press the Update SQL button to save your changes.
- Press the Close button to close the SQL editor window. The next time the specified report is run, the changes made to its SQL query will be used as the criteria for the report.