dbo.clientes_totales

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

 declare @activos int
 declare @inactivos int

 select @activos =(select count(*) from clientes where estado_cliente='A'),@inactivos = (select count(*) from clientes where estado_cliente='N')

 select @activos as activos,@inactivos as inactivos


END
GO

Depends On

1

Used By

No items found