Use
SUM Not
Count
alter procedure sp_insertticketsforcustomer(@custid int,@custname varchar(50),@date datetime,@noofseats int,@rowname char(10))
as
begin
declare @noofcounts int
select @noofcounts= SUM(Noofseats) from CustomerDetails where RowName=@rowname
select @noofcounts
end
Happy Coding!
:)