dbo.emails_

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 200

SQL Script

Copy
SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO
-- =============================================
-- Author: Marita Soria
-- Create date: 13/02/2023
-- Description: trae todos los emails de un cuit 
-- =============================================
/*
exec [emails_] '27208925658'
*/

CREATE OR ALTER PROCEDURE dbo.emails_
 @p_cuit varchar(200) 
AS
BEGIN
   SET NOCOUNT ON;
   select distinct email 
       From emails d
    where id_padron = (select top 1 id_padron from padrones
         WHERE padrones.identificacion = @p_cuit) 
END
GO

Depends On

2

Used By

No items found