I have a task at hand, where i need to create a report with defect id, time the defect was in a particular status, In HP QC SPS.
The issue at hand is (for example) , if the status changed from 'new' to 'open in analysis', then to 'under investigation' and then changed it back to 'open in analysis'. the report should capture the time spend under each status. which means twice the status was 'open in analysis', so that time needs to be added and captured.
how can i achieve this.
can some one help me with a SQL query for the same?