I have developed a query, and in the results for the first three columns I get NULL. How can I replace it with 0?
NULL
0
Select c.rund
When you want to replace a possibly null column with something else, use IsNull.
null
SELECT ISNULL(myColumn, 0 ) FROM myTable
This will put a 0 in myColumn if it is null in the first place.