where.asciidoc 716 B

123456789101112131415161718192021222324252627282930313233
  1. [discrete]
  2. [[esql-where]]
  3. === `WHERE`
  4. Use `WHERE` to produce a table that contains all the rows from the input table
  5. for which the provided condition evaluates to `true`:
  6. [source,esql]
  7. ----
  8. include::{esql-specs}/docs.csv-spec[tag=where]
  9. ----
  10. Which, if `still_hired` is a boolean field, can be simplified to:
  11. [source,esql]
  12. ----
  13. include::{esql-specs}/docs.csv-spec[tag=whereBoolean]
  14. ----
  15. [discrete]
  16. ==== Operators
  17. Refer to <<esql-operators>> for an overview of the supported operators.
  18. [discrete]
  19. ==== Functions
  20. `WHERE` supports various functions for calculating values. Refer to
  21. <<esql-functions,Functions>> for more information.
  22. [source,esql]
  23. ----
  24. include::{esql-specs}/docs.csv-spec[tag=whereFunction]
  25. ----