---
schema_version: "1"
id: 9b992892272754f9c153b61750b79965c0eaa04acde6ce051b41686d4ed391b5
title: STARTS_WITH
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/data-cloud-query-guide/references/data-cloud-sql-reference/scalar-func/string-func/starts-with.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/starts-with.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 96c12fd683a35d14eacee032d762ba4b37d0f5f5384d42bb74a4e4f8128d3e65
products:
  - Data 360 Query Guide
  - Data 360 Developer Documentation
---
# `STARTS_WITH`

**Applies to:** ✅ Data 360 SQL ✅ Tableau Hyper API

Returns `true` if a string starts with a specified prefix.

## Syntax

```sql
starts_with(<string>, <prefix>)
```

## Arguments

### Required

- `<string>`: The string to check.
- `<prefix>`: The prefix to look for.

## Returns

Returns a boolean value that indicates whether the string starts with the prefix.

## Considerations

- Comparison is case-sensitive.
- An empty prefix returns true for any string.

## Examples

### Check Prefix

Check whether a string starts with a prefix.

```sql
SELECT starts_with('alphabet', 'alph') AS result;
```

Returns `true`.

## Related Documentation

- [String Types](https://developer.salesforce.com/docs/data/data-cloud-query-guide/datatype/string.md)
