Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

Need help with SQL to pull daily counts (# of defects opened, resolved, closed, etc. on daily basis)

$
0
0

Hello everyone,

 

I am trying to pull daily status counts ... IT Executives want something like below fairly urgent to show them monthly or weekly history of how many defects were logged, resolved, closed, etc. on a given day (we have other status values in status drop-down)

 

Challenge that I am facing is Date Submitted gives me date when defect was submitted and Closing Date gives me the date when defect was closed but dont have dates for remaining state transitions (when a defect got resolved, for example or got re-opened) so need your help in joining history table to pull following report via SQL/OTA script:

 

Status/Date:      8/11  |  8/12  |  8/13  (and so on for last 7 days)

----------------------------------------------------------------------

New                 7   |    3   |   2

Resolved           11   |    2   |   5

Closed              8   |    1   |  21

Reopened            0   |    2   |   1

----------------------------------------------------------------------

 

It is also okay to turn things around and do it other way:

 

Status/Date:       New  |  Resolved  |  Closed  |  Reopened

----------------------------------------------------------------------

8/1                 7   |    3       |   2      |   0

8/2                11   |    2       |   5      |   1

8/3                 8   |    1       |  21      |   0

8/4                 0   |    2       |   1      |   2

and so on ...

----------------------------------------------------------------------

 

Any help with the query or OTA script is greatly appreciated.

 

Thanks!


Viewing all articles
Browse latest Browse all 5491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>