This topic describes how to use the mathematical function division in Realtime Compute.

Syntax

A/B

Input parameters

Parameter Data type
A INT
B INT

Description

Returns the quotient of A divided by B.

Example

  • Test data
    int1 (INT) int2 (INT)
    8 4
  • Test statements
    SELECT int1 / int2 as aa
    FROM T1;      
  • Test results
    aa (DOUBLE)
    2.0