Performing Arithmetic : Arithmetic « Query Select « Oracle PL/SQL Tutorial






  1. Oracle can perform arithmetic in SQL statements.
  2. Arithmetic in SQL statements include addition, subtraction, multiplication, and division.
  3. Arithmetic expressions consist of two operands, numbers or dates, and an arithmetic operator.
  4. '2 * 6' is an example of an expression.
  5. An expression may contain a combination of columns, literal values, and operators.

The four arithmetic operators are:

OperatorDescription
+Addition
-Subtraction
*Multiplication
/Division


SQL>
SQL> SELECT 2 * 6 FROM dual;

       2*6
----------
        12

SQL>








2.10.Arithmetic
2.10.1.Performing Arithmetic
2.10.2.Using Columns in Arithmetic
2.10.3.Combine more than one operator in an expression