I have a SQL table, and I am using T-SQL. I have one table with some null values in one of the columns. I want to replace the null values with zeros. I am using this query:
Use Energy_Db
Update DataCenter_Amps
Set PDU_Max_KW = 0
Where PDU_Max_KW = null
The problem is that when I run the query, no change takes place ( 0 rows are affected). How can I make this work?
Thanks
Start Free Trial