Hi,
Here is the query I am using to get the data from the database:-
This query is working fine. Result of this query is:-
Above query is working for single workpackage_id. When I want to get the data
for all the workpackages in the database its not giving the proper out put. the query I am using for all workpackages is:-
The output of above query is:-
Is there any way that I can get right status count for all the workpackages through query.......... ..
Here is the query I am using to get the data from the database:-
Code:
select workpackage_name, current_defect_status, count(*) from workpackage_detail inner join defect_detail on workpackage_detail.workpackage_id = defect_detail.workpackage_id where workpackage_detail.workpackage_id = 'WPCM034' group by current_defect_status
Code:
Factore Order Table Maintenance Fixed 2 Factore Order Table Maintenance On Work Plate 1 Factore Order Table Maintenance Removed 2 Factore Order Table Maintenance Sent For Clarification 1 Factore Order Table Maintenance TBCI 1 Factore Order Table Maintenance Works For Me 1
for all the workpackages in the database its not giving the proper out put. the query I am using for all workpackages is:-
Code:
select workpackage_name, current_defect_status, count(*) from workpackage_detail inner join defect_detail on workpackage_detail.workpackage_id = defect_detail.workpackage_id /*where workpackage_detail.workpackage_id = 'WPCM0986'*/ group by current_defect_status
Code:
Factore Order Table Maintenance Fixed 7 Product Line Maintenance On Work Plate 6 Factore Order Table Maintenance Removed 4 Factore Order Table Maintenance Sent For Clarification 1 Factore Order Table Maintenance TBCI 1 Factore Order Table Maintenance Works For Me 2
Comment