sql - an update statement that adds 100 to a total -
how write update statement adds 100 credit total field of invoices invoices written first of year?
i'm trying write statement like:
update dbo.invoices set credittotal (this problem right here dont know how add 100 this) invoices = (the first of year)
adding 100 means new value of column current value plus 100:
update dbo.invoices set credittotal = credittotal + 100 datepart (dy, invoices) = 1
Comments
Post a Comment