dbo.obtener_tipos_causas

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_tipos_causas
AS
BEGIN
    SET NOCOUNT ON;

/* select tipos_causas.*,'0' as bbva_cau_codigo from tipos_causas

 order by nombre_causa
*/

  select tipos_causas.*,isnull(tipo_proceso.tp_codigo,0) as tipo_de_proceso from tipos_causas left join tipo_proceso 
  on tipos_causas.id_tipo_causa=tipo_proceso.id_tipo_causa
/*  WHERE tipos_causas.nombre_causa = 'QUIEBRA DECRETADA INDIRECTA'*/
  order by nombre_causa
  

 /* order by tp_nombre*/
 
END 

GO

Used By

No items found