I have the need to generate a report in Oracle APEX that is similar to the example below:
PROJECT OPEN_ISSUE_COUNT CLOSED_ISSUE_COUNT
W-1 3 1
X-2 1 2
Y-3 5 3
Z-4 2 1
Where OPEN_ISSUE_COUNT
and CLOSED_ISSUE_COUNT
are generated by a SQL COUNT
statement. The table being queried looks like this:
ISSUE_# ISSUE_STATUS ASSOCIATED_PROJECT
1A OPEN W-1
1B OPEN W-1
1C OPEN W-1
2A CLOSED W-1
2B OPEN X-2
2C CLOSED X-2
3A CLOSED X-2
etc...
So in one query I need to count for OPEN_ISSUE_COUNT
and CLOSED_ISSUE_COUNT
where ISSUS_STATUS = 'OPEN'
and ISSUS_STATUS = 'CLOSED'
respectively and GROUP BY
ASSOCIATED_PROJECT
.
Does that make sense? Obviously I can easily do this for one of the two statuses, but have been unable to come up with any viable solution for what I am describing here. I have looked over some stuff here and elsewhere online and did not see something similar. Let me know what you guys think. Thanks!