Join our webinar on Modern Data Pipelines for Smart Factories​ on Jun 26th

Register Now
CrateDB Logo
  • Product
    • Database
      • Overview
      • SQL examples
      • Integrations
      • Security
    • Data models
      • Time-series
      • Document/JSON
      • Vector
      • Full-text
      • Spatial
      • Relational
  • Use cases
    • Real-time analytics
    • Hybrid search
    • AI/ML integration
    • AI chatbots
    • Internet of Things
    • Geospatial analytics
    • Log & event analysis
  • Industries
    • Energy
    • Financial Services
    • FMCG
    • Logistics
    • Manufacturing
    • Oil, gas & mining
    • Smart city solutions
    • Technology platforms
    • Telco
    • Transportation
  • Resources
    • Customer stories
    • Academy
    • Asset library
    • Blog
    • Events
  • Developer
    • Documentation
    • Drivers and tools
    • Community
    • GitHub
    • Support
  • Pricing
  • Login
  • Get Started
Toggle Doc Menu
Search
    • CrateDB Cloud
    • Self-Managed
    • Getting Started
    • Reference Manual
      • Running CrateDB
      • Configuration
      • General Use
        • Data Definition
        • Data Manipulation
        • Querying Crate
        • Built-in Functions and Operators
          • Scalar Functions
          • Aggregation
          • Arithmetic Operators
          • Table Functions
          • Comparison Operators
          • Array Comparisons
          • Subquery Expressions
          • Window Functions
        • User-Defined Functions
        • Blobs
        • Optimistic Concurrency Control
        • Information Schema
      • Administration
      • SQL Syntax
      • Client Interfaces
      • CrateDB Editions
      • Appendices
    • Admin UI
    • Crash CLI
    • Drivers and Integrations
    • Support
    • Community
    • Integration Tutorials
    • Sample Applications
  Feedback

  Suggest improvement

  Edit page

  View page source

3.3

Built-in Functions and Operators¶

This chapter provides an overview of built-in functions and operators.

Operators are reserved keywords that are primarily used in a WHERE Clause to perform arithmetic operations or comparisons.

Table of Contents

  • Scalar Functions
    • String Functions
    • Date and Time Functions
    • Geo Functions
    • Mathematical Functions
    • Regular Expression Functions
    • Array Functions
    • Conditional Functions and Expressions
    • System Information Functions
    • Special Functions
  • Aggregation
    • Introduction
    • count
    • min
    • max
    • sum
    • avg and mean
    • geometric_mean
    • variance
    • stddev
    • percentile
    • arbitrary
    • hyperloglog_distinct
    • Limitations
  • Arithmetic Operators
    • Supported operators
    • Result types
  • Table Functions
    • empty_row( )
    • unnest( array [ array , ] )
    • generate_series(start, stop, [step])
  • Comparison Operators
  • Array Comparisons
    • IN (value [, ...])
    • ANY/SOME (array expression)
  • Subquery Expressions
    • IN (subquery)
    • ANY/SOME (subquery)
  • Window Functions
    • Introduction
    • Window Definition
    • General-Purpose Window Functions
    • Aggregate Window Functions

Subscribe to the CrateDB Newsletter now

CrateDB Logo
  • Imprint
  • Contact
  • Legal
Follow us
Follow us on Twitter Follow us on LinkedIn Follow us on Facebook Follow us on Instagram Follow us on Facebook