how to divide two different SQL query to get a single count, when one is giving me count x and other is y -
i having 2 query 1 giving me count of number of defects :
select t1.project_name, t1.request_type, count( distinct t1.reference_id) reference_id ridw.vw_request t1 t1.project_id = 4 , t1.request_type = 'defect' , t1.issoftdeleted = 0 , (t1.request_id <> -1 , t1.request_id not null) group t1.project_name, t1.request_type
and other giving me count total number of test cases:
select t2.project_name, count( distinct t2.reference_id) reference_id ridw.vw_testcase t2 t2.project_id = 6 , t2.issoftdeleted = 0 , (t2.testcase_id <> -1 , t2.testcase_id not null) group t2.project_name
i want combine query give me count= defects/total test cases
Comments
Post a Comment