Question1Replies386Views Janani.M.A Member since 2012 1 post VirtusaPolaris Posted: April 1, 2017Last activity: April 4, 2017 Closed How to include sub query in reportsI want to know how to configure sub reports to implement the following query.select * from pr4_rule_vw where PZINSKEY in (select pxhistoryforreference from pr4_history_rule where pxtargetrulesetversion='03-01-01'); Reporting ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 3 years agoRonLee_GCS PEGA replied to Janani.M.AAre you sure you need a SubReport? It doesn't look like you are displaying any columns from pr4_history_rule. You might be able to do this with a report in Data-Rule-Summary that does a class join with History-Rule, using the appropriate join conditions: .pzInsKey = HistoryRule.pxHistoryForReference AND HistoryRule.pxTargetRuleSetVersion = "03-01-01"