dbo.obtener_produtos_a_vencer

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_produtos_a_vencer
AS

BEGIN
    SET NOCOUNT ON;
 select clientes.cliente,
 clientes.cli_codigo,
 clientes.nombre_cliente,
 productos.nombre_producto, productos.sigla, 
 convert(varchar,clientes_productos.fecha_hasta, 103) as fecha_hasta  
 from clientes_productos inner join clientes on clientes_productos.cliente = clientes.cliente
 inner join productos on productos.producto=clientes_productos.id_producto
  where activo=1 and fecha_hasta < getdate() + 60
 order by fecha_hasta desc
END 
GO

Used By

No items found