Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Numeric value and Null 1

Status
Not open for further replies.

Robinstwitcher

Programmer
Aug 30, 2006
21
GB
Am attempting to update a table by adding a value from one table into a table that currently contains Null.
current code is:

UPDATE table1
SET NrofRows = a.NrOfRows + b.NrOfRows
FROM table1 a, table2 b
WHERE a.Key = b.Key


The Values contained are
table1 NrOfRows = Null
table2 NrOrRows = 1000

The answer returned is Null - Can you help please!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top