السلام عليكم ورحمة الله
ما الخطا فى الجملة التالية
insert into Installments(EmployeeId,ReceiveId,MonthId,YearCode,Amount) (select Serial from Employees where AccountingId=13 and MembershipStateId=1 ,1,2,1,100)
وتصميم الجدول
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Installments]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[Installments] GO CREATE TABLE [dbo].[Installments] ( [InstallmentId] [int] IDENTITY (1, 1) NOT NULL , [ReceiveId] [int] NULL , [MonthId] [smallint] NULL , [YearCode] [int] NULL , [EmployeeId] [int] NULL , [Amount] [money] NULL ) ON [PRIMARY] GO
