Somebody (I suspect, they are users of MySQL or Oracle) expects the results in somewhat as
a
b
0.3333
1.6667
i.e. real number, the others -
a
b
0
2
i.e. the rounding to the nearest integer, whereas SQL Server gives
a
b
0
1
To resolve this bewilderment I shall tell, that operation "/" designates just the integer part of the result of dividing two integers (namely, quotient) if both operands are integers. I.e. the separate designation for this operation is not supplied, and the symbol of "usual division" is used. If you wish to receive decimal number you need convert at least one operand to real data type explicitly (the first column) or implicitly (the second column):