For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
index

SQL Data Types

Rippling SQL supported data types

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Rippling SQL supports a rich set of data types for querying and analyzing your workforce data. This guide explains each supported data type, its usage, and examples.

Primitive Data Types​

String Types​

SQL TypeDescriptionExample Values
VARCHARVariable-length character string'John Doe', 'Engineering'
TEXTText data (treated as string)'Employee notes...'

Numeric Types​

SQL TypeDescriptionRange/PrecisionExample Values
INTInteger (whole numbers)-2^31 < value < 2^31-142, -100, 0
FLOATFloating-point number64-bit inexact, variable-precision3.14, -0.5
DECIMALPrecise decimal numberUp to 38 digits precision1234.56

Boolean Type​

SQL TypeDescriptionValid Values
BOOLEANTrue/false valueTRUE, FALSE (case insensitive)

Date and Time Types​

SQL TypeDescriptionFormatExample Values
DATECalendar dateYYYY-MM-DD'2024-01-15'
TIMESTAMPDate and timeYYYY-MM-DD HH:MM:SS'2024-01-15 14:30:00'

Complex Data Types​

Array Type​

SQL TypeDescriptionExample
ARRAYOrdered collection of values['Engineering', 'Product']

JSON Type​

SQL TypeDescriptionExample
JSONSemi-structured JSON data{"key": "value"}

Variant Type​

SQL TypeDescriptionUse Case
VARIANTFlexible type for heterogeneous dataFields that can contain different data types

Variant types support the following subtypes:

  • STRING
  • INT
  • FLOAT
  • DECIMAL
  • DATE
  • TIMESTAMP
  • BOOLEAN

NULL Type​

SQL TypeDescription
NULLRepresents missing or unknown values

Type Casting​

You can convert between compatible types using the CAST function.