3
Answers

Problem With insert Query With Where Conditions

lava kumar

lava kumar

10y
809
1

Am Using Query Like this

insert into BalanceSheet (Balance) select @Balance FROM OrderBill WHERE CustomerID=@CustomerID and InvoiceID=@InvoiceID

Getting Error Like

Cannot insert the value NULL into column 'CustID', table 'BillingAndAccounts.dbo.BalanceSheet'; column does not allow nulls. INSERT fails.

The statement has been terminated.

Answers (3)