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
-- =============================================
-- Author: <Samuel González>
-- Create date: <20 Oct 2017>
-- Description: <Obtener edad de persona física>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.obtener_edad_persona_fisica
-- Add the parameters for the stored procedure here
@p_cuit varchar(20)
AS
BEGIN
SET NOCOUNT ON;
select distinct
c02_fecha_nac as fecha_nac,
c02_anio_nac as anio_nac
from DATOS_PERSONAS where (c01_cuit = @p_cuit) and (visible = 1)
and (((c02_fecha_nac is not null) and (c02_fecha_nac != '')) or ((c02_anio_nac is not null) and (c02_anio_nac != '')))
END
GO
GO
-- =============================================
-- Author: <Samuel González>
-- Create date: <20 Oct 2017>
-- Description: <Obtener edad de persona física>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.obtener_edad_persona_fisica
-- Add the parameters for the stored procedure here
@p_cuit varchar(20)
AS
BEGIN
SET NOCOUNT ON;
select distinct
c02_fecha_nac as fecha_nac,
c02_anio_nac as anio_nac
from DATOS_PERSONAS where (c01_cuit = @p_cuit) and (visible = 1)
and (((c02_fecha_nac is not null) and (c02_fecha_nac != '')) or ((c02_anio_nac is not null) and (c02_anio_nac != '')))
END
GO
Depends On
1Used By
No items found