Hi I wrote below SP:
Create procedure [dbo].[CountPhone]
@Group1 NVARCHAR(40)
,@Group2 NVARCHAR(40)
as
begin
select count(*) as Phone from PhoneBook where Group1=@Group1 and Group2=@Group2 as Phone
but this error happen:
Msg 156, Level 15, State 1, Procedure CountPhone, Line 7
c
where is code problem?
Best regards
neda