Scalar Functions and Operators

Data 360 Query Guide, mirrored from developer.salesforce.com: **Applies to:** ✅ Data 360 SQL ✅ Tableau Hyper API

markdownreferencev1P8S4-XKHBguide: data-cloud-query-guidestage: referencetrust: officialsource: developer.salesforce.comservice: data360interface: sqlScalar Functions and OperatorsData 360Data CloudData 360 Query Guide

Created 23 Oct 2026 · Modified 23 Oct 2026 · 1 version

Mirror of <https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/scalar-functions.html> (Salesforce, Data 360 Query Guide), read 2026-10-23. Salesforce's own page is the authority; this copy exists because that site refuses non-browser readers.

Scalar Functions and Operators

Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API

Functions and operators compute one result for each set of input values. Use scalar functions and operators to transform values, compare data, perform calculations, and control how expressions are evaluated.

Use generative AI models to classify text, analyze sentiment, and generate text.

  • AI Functions - Classify text, determine sentiment, or generate text from a prompt.

Create, inspect, and transform arrays and JSON values.

  • Array Functions - Access, search, build, transform, and compare arrays and vectors.
  • JSON Functions - Construct JSON values from SQL values, arrays, and key-value pairs.

Format, transform, search, and compare text values.

Convert values between data types or format values for display.

Compare values and combine or negate conditions.

Choose a result based on conditions or available values.

Perform numeric calculations.

Create, inspect, compare, and modify temporal values.

Read this document as markdown — the same bytes an agent receives.