lava kumar

lava kumar

  • 1.5k
  • 241
  • 15.5k

Problem With insert Query With Where Conditions

Apr 29 2014 4:18 AM

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)