Some minor fix is required.
Originally, the AvgHighTempC is set to "not null", by default.
To make the "update table" work, the table constructor needs the "null" for the said column.
CREATE TABLE #MonthlyTempsStl(MNo Int,
MName varchar(15),
AvgHighTempF INT,
AvgHighTempC DECIMAL(4,2) null )
I like your posting. Well put together and easy to follow. Well done!
- This reply was modified 4 years, 2 months ago by John Esraelo-498130. Reason: adding more comment