dbo.obtener_subramos

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_subramos 
AS
BEGIN
 SET NOCOUNT ON;
 SELECT cod_ramo, 
 cod_subramo, 
 right('000000'+ltrim(rtrim((convert(char(6),cod_subramo)))),6) as cod_subramo_2, 
 descripcion, 
 descripcion_2, 
 tipo_ramo
 FROM ramos 
 where ramos.cod_ramo >= 99
 and tipo_ramo = 'S'
 ORDER BY cod_ramo, cod_subramo

END

GO

Depends On

1

Used By

No items found