Thumb

Arithmetic Operator

9/14/2020 6:59:24 AM

Arithmetic Operator: The arithmetic operator is five type in SQL Addition (+), Subtract (-), Multiply (*), Divide (/), Modulo (%). Add operator add the two or more value than show the result. Subtract operator Subtract the two or more value than show the result. Multiply operator Multiply the two or more value than show the result. Divide operator Divide the two or more value than show the result. Modulo is responsible to find the Modulo value from the Divide result. Now given bellow the example code:

SELECT 30 + 20;
SELECT 30 - 20;
SELECT 30 * 20;
SELECT 30 / 20;
SELECT 30 % 20;

We use the five Arithmetic operators using 20 and 30 values.