Apache Presto - Decimal Operator


Advertisements

Query 1

presto:default> select decimal '123' + decimal ’22’ as decimal; 

Result

 decimal 
------- 
  145 

The output is decimal addition.

Query 2

presto:default> select decimal '123' - decimal ’22’ as unary_minus;

Result

 unary_minus 
------- 
  101

Query 3

presto:default> select decimal '123' between decimal '100' and 
decimal '200' as decimal_range; 

Result

decimal_range 
--------------- 
   true

Here, 123 lies between the specified range.

apache_presto_basic_sql_operations.htm

Useful Video Courses


Video

Apache Spark Online Training

46 Lectures 3.5 hours

Arnab Chakraborty

Video

Apache Spark with Scala - Hands On with Big Data

23 Lectures 1.5 hours

Mukund Kumar Mishra

Video

Learn Apache Cordova using Visual Studio 2015 & Command line

16 Lectures 1 hours

Nilay Mehta

Video

Delta Lake with Apache Spark using Scala

52 Lectures 1.5 hours

Bigdata Engineer

Video

Apache Zeppelin - Big Data Visualization Tool

14 Lectures 1 hours

Bigdata Engineer

Video

Olympic Games Analytics Project in Apache Spark for Beginner

23 Lectures 1 hours

Bigdata Engineer

Advertisements