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_novedades_ant
AS
BEGIN
SET NOCOUNT ON;
select cuit,tipo_novedad as seccion,id_cendeu as id,nro_cheque from monitoreos_resultados where novedad = 1 and id_cendeu IS NOT NULL
union
select cuit,tipo_novedad as seccion,id_juicio as id,nro_cheque from monitoreos_resultados where novedad = 1 and id_juicio IS NOT NULL
union
select cuit,tipo_novedad as seccion,id_cheque as id,nro_cheque from monitoreos_resultados where novedad = 1 and id_cheque IS NOT NULL
group by cuit,nro_cheque,id_cheque,id_juicio,id_cendeu,tipo_novedad
order by tipo_novedad asc
END
GO
GO
create OR ALTER procedure dbo.obtener_novedades_ant
AS
BEGIN
SET NOCOUNT ON;
select cuit,tipo_novedad as seccion,id_cendeu as id,nro_cheque from monitoreos_resultados where novedad = 1 and id_cendeu IS NOT NULL
union
select cuit,tipo_novedad as seccion,id_juicio as id,nro_cheque from monitoreos_resultados where novedad = 1 and id_juicio IS NOT NULL
union
select cuit,tipo_novedad as seccion,id_cheque as id,nro_cheque from monitoreos_resultados where novedad = 1 and id_cheque IS NOT NULL
group by cuit,nro_cheque,id_cheque,id_juicio,id_cendeu,tipo_novedad
order by tipo_novedad asc
END
GO
Depends On
1Used By
No items found