ماهو الخطأ في هذا الكود هل لاني وضعت شرطين في where لاني عندما وضعت شرط كانت النتائج تطلع صح لكن انا احتاج للشرطين
ام ان المشكلة في null علما ان due date هو من نوع تاريخ
CREATE PROCEDURE noofbook (@id int, @Count int output ) AS SET NOCOUNT ON select @Count = count (membershipNO) from bookLoan where membershipNO = @id and dueDate=Null return GO