An SQL Where
expression is a standard SQL Value Expression, and is
coerced to a boolean type after evaluation. The SQL WHERE clause is used to select
a subset of rows to process. Only rows which are true are kept;
rows that evaluate to null or false are discarded.
The following patterns in a Where expression will be optimized against a dataset by using the column index for the given column:
WHERE rowName() = constantWHERE constant = rowName()WHERE rowName() IN (constant, constant, ...)WHERE rowName() % constant <op> constant (op can be one of =, !=, <, >, <=, >=)WHERE column = constantWHERE columnWHERE column IS TRUEWHERE column IS NOT NULLWHERE x AND y (where both x and y are in this list)WHERE x OR y (where both x and y are in this list)This can considerably speed up a lot of MLDB queries.