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

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -