Arithmetic Operators
Arithmetic opertaors are used to perform arithmetical operations on numeric operands.
Arithmetic Operators
| Operator | Operation | Description |
|---|---|---|
| + | Addition | It is used to add values of both operand |
| - | Substraction | It is used to subtract right hand side value from the left hand side value |
| * | Multiplication | Multiples the values present on each side of the operator |
| % | Modulus | Divides left hand operand by right hand operand and returns remainder. |
| / | Divide | Divides left hand operand by right hand operand. |
Examples :
- Addition
select 20 + 20;
- Substraction
select 20 - 10;- Multiplication
select 10 * 5;- Division
select 10 / 2;- Modulus
select 12 % 5;





0 Comments