---
schema_version: "1"
id: 343760a5cc4d4f330bd842e85a73b26ea41ebd40fc846a27a0c45c0e91dd6061
title: starts_with({source_str}, {search_str})
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_sql/guides/bi-sql-string-starts-with.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-sql/guide/bi-sql-string-starts-with.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 40079792f6366793f62921cff7285abb1a4b21175aed5506256cad8bcae937b6
products:
  - SQL for Analytics Developer Guide
  - analytics
---

# starts_with({source_str}, {search_str})

Returns a Boolean indicating whether a string begins with the search string.

`STARTS_WITH()` follows this syntax.

- _source_str_

  - : The string to be searched.

- _search_str_

  - : The string to search for within the source string.

## Example

This example returns a Boolean that confirms whether the value in the `City` field begins with “Hen.”

```nolang
SELECT City, STARTS_WITH(City, "Hen") as "startValue"
FROM "Superstore"
LIMIT 5;
```

| City            | startValue |
| --------------- | ---------- |
| Henderson       | true       |
| Henderson       | true       |
| Los Angeles     | false      |
| Fort Lauderdale | false      |
| Fort Lauderdale | false      |
