Creating New Query Reports

     

    1. Click on the Reports tab. This opens the All Reports page.

    2. Only Administrator can see New Query Report button.

    3. Click New Query Report button. This opens the Query Editor page.

    4. Select the Table Schema from the combo box say,  requests, timespent and so on. Click Get to view the table schema for the selected option.

    5. Specify the title of the report in the Report Title field. This is a mandatory field.

    6. Specify the query to be executed for getting reports in the Query field. This is a mandatory field.

    7. The logs will display all error messages on providing any wrong query.

    8. Click Run Report to run query report.

    Tips

    1. Date Formulae: DATE_FORMAT (FROM_UNIXTIME (COLUMN_NAME/1000),'%d-%m-%Y %k: %i') 'Column Alias'.

    2. Minutes Formulae: ROUND ((((COLUMN_NAME/1000)/60)) % 60) 'Minutes'.

    3. Hours Formulae: ROUND (((COLUMN_NAME/1000)/3600)) 'Hours'.

    4. Compare Date: COLUMN_NAME >= (UNIX_TIMESTAMP (DATE ('2006-07-24 00:00:00')) * 1000).

    5. Convert Memory in GB: ((((MEMORY_COLUMN)/1024)/1024)/1024)

    6. Default Value For Null Data: COALESCE (COLUMN_NAME, 'Unassigned')

    7. Group by: Query statement will be ends with order by <column_index>

    8. $LoggedInUser : The $LoggedInUser variable used in the query will be replaced with the display name of the currently logged-in technician during query execution. Example: Select * from aaauser where first_name=$LoggedInUser;

    9. $Account : You can use $Account as a template variable in your query. This will be replaced with the current Account ID configured in the Account Combo Box during query execution. Example: Select * from accountdefinition where org_id=$Account;

    Additional Field tables

    1. Request Additional Fields - WorkOrder_Fields

    2. Requester Additional Fields - Requester_Fields

    3. Technician Additional Fields - Technician_Fields

    4. Asset Additional Fields - Asset_Fields

    5. Workstation Additional Fields - Workstation_Fields

    6. Problem Additional Fields - Problem_Fields

    7. Change Additional Fields - Change_Fields

     

     

    Zoho Corp. All rights reserved.