Description
Properties
| Name | Value |
|---|---|
| ANSI Nulls ON | True |
| Quoted Identifier ON | True |
| Encrypted | False |
| Execute As | |
| Assembly |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
CREATE OR ALTER PROCEDURE dbo.obtener_cuits_monitoreos_por_referencia
AS
BEGIN
SET NOCOUNT ON;
select distinct(cuit) from monitoreos_resultados
where fecha > getdate() - 1
and
cuit in ( select distinct(cuit) from monitoreos where id_referencia_externa is not null and visible = 1 and fecha_vigencia_mantenimiento > getdate())
END
GO
GO
CREATE OR ALTER PROCEDURE dbo.obtener_cuits_monitoreos_por_referencia
AS
BEGIN
SET NOCOUNT ON;
select distinct(cuit) from monitoreos_resultados
where fecha > getdate() - 1
and
cuit in ( select distinct(cuit) from monitoreos where id_referencia_externa is not null and visible = 1 and fecha_vigencia_mantenimiento > getdate())
END
GO
Depends On
2Used By
No items found