Hi,
I am new to T-SQL and I am trying to use "declare" in a stored procedure. I am getting a syntax error not sure why, any help appreciated. Here's the code :-
I am new to T-SQL and I am trying to use "declare" in a stored procedure. I am getting a syntax error not sure why, any help appreciated. Here's the code :-
Code:
ALTER PROCEDURE [dbo].[TOTALCOUNT]
@StartDate DateTime,
@EndDate DateTime
AS
BEGIN
SET NOCOUNT ON;
DEclare @TOTALPEOPLE int, @TOTALMEN int
SET @TOTALPEOPLE = 10000
SELECT col1, @TOTALPEOPLE, @TOTALMENFROM TABLE1
END