dbo.backend_obtener_sociedades_constituciones_max

Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Assembly

Parameters

1
Name Data Type Length Description
@p_cuit varchar 20

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO

/*
exec [obtener_edictos_prueba] 20250070498 
exec [obtener_edictos] 20250070498
exec [backend_obtener_sociedades_constituciones_max] '30711603197'
exec [backend_obtener_sociedades_constituciones_max] '30709151041'

 
socios_enriquecer 'select',null,150
*/

CREATE OR ALTER PROCEDURE dbo.backend_obtener_sociedades_constituciones_max 
@p_cuit varchar(20)
AS


BEGIN
 SET NOCOUNT ON;
 select fuente, MAX(fecha_publicacion) as fecha_publicacion,  CONVERT(varchar,MAX(fecha_publicacion),103) as fecha_dmy 
   from sociedades_constituciones
 where (documento_soc = @p_cuit or cuit_int = @p_cuit ) 
 group by fuente 
 

 
END

GO

Used By

No items found