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
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
1Used By
No items found