SQL "select" query for getting 0 instead of null? In the database I have some value as null . So while fetching these null value from database it should be treated as 0 not as null. 
Note:- I don't want to be it done by code but from SQL query.
You can use 

SELECT IFNULL(ColumnName,0) FROM TableName

or

SELECT COALESCE(ColumnName,0) FROM TableName