Your easiest option is to probably take advantage of the existing SQL query used in the deployable SRS reports for GP. The primary dataset for the report uses the SQL query "seepmHATBWrapper". Your best option may be re-purposing a copy of the standard SRS report.
↧