where.asciidoc 705 B

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