may be thisselect Project_Name,SUM(RFIs),SUM(Submittals),SUM(RFI)from(select NVL((select projectname from xxx_sys_project_info where project_id = pid),'99 - null') as Project_Name,Count(*) as RFIs,TO_NUMBER (null) as Submittals,TO_NUMBER (Null) as RFIfrom xxx_ur2GROUP BY PROJECT_IDUNIONselectNVL((select projectname from xxx_sys_project_info where project_id = pid),'99 - null') as Project_Name,TO_NUMBER (NULL) as RFIs,Count(*) as Submittals,TO_NUMBER (Null) as RFIfrom xxx_us1where status = 'In_Review' or status = 'Pending' or status = 'Revise_and_Resubmit'GROUP BY project_idUNIONselectNVL((select projectname from xxx_sys_project_info where project_id = pid),'99 - null') as Project_Name,TO_NUMBER (NULL) as RFIs,TO_NUMBER (NULL) as Submittals,Count(*) as RFIfrom xxx_ur4where status = 'In_Review' or status = 'Pending' or status = 'Revise_and_Resubmit'GROUP BY project_id)tGROUP BY Project_Name
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/