Filters a record set for data with a case-insensitive string starting sequence.
The following table compares the
startswith operators using the abbreviations provided:
- RHS = right-hand side of the expression
- LHS = left-hand side of the expression
||RHS is an initial subsequence of LHS||No||
||RHS isn't an initial subsequence of LHS||No||
||RHS is an initial subsequence of LHS||Yes||
||RHS isn't an initial subsequence of LHS||Yes||
For more information about other operators and to determine which operator is most appropriate for your query, see datatype string operators.
Performance depends on the type of search and the structure of the data. For best practices, see Query best practices.
When possible, use the case-sensitive startswith_cs.
Learn more about syntax conventions.
|T||string||✓||The tabular input to filter.|
|col||string||✓||The column used to filter.|
|expression||string||✓||The expression by which to filter.|
Rows in T for which the predicate is
StormEvents | summarize event_count=count() by State | where State startswith "Lo" | where event_count > 10 | project State, event_count