Click here to Skip to main content
15,922,696 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hiii all
i have aview that retrieves values some of it contains null.
i want to convert that null value to zero, how can i check that, please
any help?
thanks
Posted

In your select of the View, use
IsNull([field], 0) AS [name]
 
Share this answer
 
v2
And another option is to use COALESCE[^]:
SELECT ..., COALESCE(columnName, 0)...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900