Skip Navigation LinksHome Page > Forums > SpiraTest Forums > SpiraTest Issues & Questi... > Custom report biased on v...
select R.TEST_CASE_ID, R.RELEASE_VERSION_NUMBER, R.TEST_SET_NAME, R.NAME, C.TEST_CASE_PRIORITY_NAME, R.EXECUTION_STATUS_NAME from SpiraTestEntities.R_TestRuns as Rinner join (select max (TR.TEST_RUN_ID) as LAST_TEST_RUN_ID from (SpiraTestEntities.R_TestRuns) as TR where TR.PROJECT_ID = ${ProjectId} and TR.RELEASE_VERSION_NUMBER = "5.0-PR2" GROUP BY TR.TEST_SET_TEST_CASE_ID)as T on R.TEST_RUN_ID = T.LAST_TEST_RUN_IDinner join SpiraTestEntities.R_TestCases as C on R.TEST_CASE_ID = C.TEST_CASE_IDORDER BY C.TEST_CASE_PRIORITY_NAME, R.EXECUTION_STATUS_NAME, R.TEST_SET_NAME
And if you have any questions, please email or call us at +1 (202) 558-6885