Ver originalSELECT sucursal, ISNULL(SUM(registros),0)FROM dbo.pruebaWHERE (movimiento='01' OR movimiento='02') AND (estatus='01' OR estatus='02')GROUP BY sucursal