Magic of NULL In MSSQL Database Server Tutorial Example
Run microsoft sql server management studio query editor or any client tools you like then copy & paste the below code to see the magic of NULL in Arithmetic Operation in select clause on a table usinq sql command or statement in MSSQL Database Server Tutorial Example
SELECT NULL,
NULL+1,
1-NULL,
NULL-1,
NULL*1*0+1-10,
1/NULL,
NULL/1
My Learning About NULL!! On Database Arithmetic Operation
- NULL IS A VALUE THAT IS UNAVAILABLE
- NULL IS A VALUE THAT IS UNASSIGNED
- NULL IS A VALUE THAT IS UNKNOWN
- NULL IS A VALUE THAT IS INAPPLICABLE
- NULL IS A VALUE THAT IS NOT EVEN EQUAL TO NULL
- NULL IS A VALUE THAT IS NOT EQUAL TO ZERO : ZERO IS A NUMBER
- NULL IS A VALUE THAT IS NOT EQUAL TO BLANK SPACE OR EMPTY STRING : SPACE IS A CHARACTER
- COLUMNS OF ANY DATATYPE CAN CONTAIN NULL VALUE
/* */ is multiline code comments in MSSQL -- is comment in MSSQL -- in fact it is comment in Oracle and MySQL as well

No comments:
Post a Comment
leave your comments here..