Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. IT Analytics Help
  3. Section IV. End user
  4. Work with the SQL template designer
  5. Example of a Pivot Table SQL Template: NetBackup Job Size

Example of a Pivot Table SQL Template: NetBackup Job Size

The following example illustrates a key SQL Template Designer formatting feature--Pivot Tables.

  1. From the SQL Template Designer tabbed window, select Date Range and Host Groups and Client Scope and also Custom Combo Box.

  2. Select Static custom combo boxand click Configure at the bottom of the Query window.

  3. Enter the heading for the drop-down combo box--in this example, Job Size by...

  4. Enter the following comma-separated list of values and then click OK: primary_host_name, client_host_name, policy_name, policy_type_name, schedule_name, schedule_type_name, storage_unit_label

    These will be the options that a user can select when generating a report.

  5. Click on the Query tab and enter the following query:

    SELECT to_char(start_date,'MM/DD/YY') run_date, to_char(${freeCombo1}) unit,  trunc(sum(kilobytes/1024/1024)) size_gb
    FROM apt_v_nbu_job_detail
    WHERE start_date BETWEEN ${startDate} AND ${endDate}
    AND client_id in (${hosts})
    GROUP BY to_char(start_date,'MM/DD/YY'), ${freeCombo1}
    
  6. Click Validate Query and then Next.

  7. In the Formatting window, select Pivot Table and all three fields: run_date, unit, and size_gb

  8. Save the report to a report menu group. Then, click on the saved report to generate it.

Feedback

Was this page helpful?
Previous

Configure a Pivot Table SQL Template

Next

Configure a Stacked Bar Chart SQL Template

Feedback

Was this page helpful?