Yandex Cloud
  • Services
  • Solutions
  • Why Yandex Cloud
  • Blog
  • Pricing
  • Documentation
  • Contact us
Get started
Language / Region
Yandex project
© 2023 Intertech Services AG
Yandex DataLens
  • Getting started
  • Tutorials
  • Concepts
  • Step-by-step guides
  • Access management
  • Pricing policy
  • Visualization reference
  • Function reference
    • All Functions
    • Aggregate functions
    • Array functions
    • Date/Time functions
    • Logical functions
    • Mathematical functions
    • Operators
      • Overview
      • AND
      • Addition and concatenation (+)
      • BETWEEN
      • Comparison
      • Division (/)
      • IN
      • IS FALSE
      • IS TRUE
      • LIKE
      • Modulo (%)
      • Multiplication (*)
      • NOT
      • Negation (-)
      • OR
      • Power (^)
      • Subtraction (-)
    • String functions
    • Text markup functions
    • Time series functions
    • Type conversion functions
    • Window functions
    • Function Availability
  • Function tutorials
  • Courses
  • Troubleshooting
    • Questions and answers
    • DataLens errors
  1. Function reference
  2. Operators
  3. OR

OR

Written by
Yandex Cloud
,
improved by
amatol

Syntax

value_1 OR value_2

Description

Performs a Boolean join of two expressions with the OR condition.

Argument types:

  • value_1 — Boolean
  • value_2 — Boolean

Return type: Same type as (value_1, value_2)

Note

Arguments (value_1, value_2) must be of the same type.

Example

[Month] = "January" OR [Year] < 2019

Data source support

ClickHouse 19.13, Yandex Metrica, Microsoft SQL Server 2017 (14.0), MySQL 5.6, Oracle Database 12c (12.1), PostgreSQL 9.3, YDB.

Was the article helpful?

Language / Region
Yandex project
© 2023 Intertech Services AG