EMPTY() determines if a value is considered empty based on its data type. This function works across all field types and returns TRUE for values that are considered empty according to type-specific rules. It's particularly useful for data validation, filtering, and handling null or empty values in your queries.
EMPTY(value)
EMPTY() returns a Boolean value (TRUE or FALSE)
EMPTY("ABC") = FALSE (non-empty string)
EMPTY(DATE(2025, 1, 1)) = FALSE (valid date)
EMPTY(123) = FALSE (non-zero number)
EMPTY("") = TRUE (empty string)
EMPTY(" ") = TRUE (string with only spaces)
EMPTY(0) = TRUE (zero number)
EMPTY(FALSE) = TRUE (false boolean)
EMPTY(DATE(0, 0, 0)) = TRUE (empty date)
EMPTY(NULL) = TRUE (null value)