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 | 30 |
SQL Script
Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: <María Inés Soria>
-- Create date: <04 07 2017>
-- Description: <Detectar si tenemos cargada fecha o año de nacimiento>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.obtener_tiene_nacimiento
@p_cuit varchar(30)
AS
BEGIN
SET NOCOUNT ON;
select count(*) as tiene_nacimiento
from datos_personas
where c01_cuit = @p_cuit
and (c02_fecha_nac is not null or isnull(c02_anio_nac,'') != '')
END
GO
GO
-- =============================================
-- Author: <María Inés Soria>
-- Create date: <04 07 2017>
-- Description: <Detectar si tenemos cargada fecha o año de nacimiento>
-- =============================================
CREATE OR ALTER PROCEDURE dbo.obtener_tiene_nacimiento
@p_cuit varchar(30)
AS
BEGIN
SET NOCOUNT ON;
select count(*) as tiene_nacimiento
from datos_personas
where c01_cuit = @p_cuit
and (c02_fecha_nac is not null or isnull(c02_anio_nac,'') != '')
END
GO
Depends On
1Used By
No items found