I Have a View in SQL Server, in one column ( data type int64) it returns Null value! But I want to display Zero in it. How Can I define a default Value for Column in View?
+1
A:
use isNull may resolve your issue like as velow
CREATE VIEW dbo.MyView
AS
SELECT col1, col2, isnull(numriccal3 ,0)
FROM mytable
Pranay Rana
2010-06-18 10:55:37
It worked too, thanks a lot.
baran
2010-06-18 11:04:18
it works than at least do up vote
Pranay Rana
2010-06-18 11:31:37
I did up vote on his behalf :)
Diego
2010-06-18 11:36:13