# SUBSTRING() Function

### Description

Returns a substring from a string (alias for SUBSTR).

**Aliases:** `SUBSTR` — equivalent spellings; same function and parameters.

### Syntax

```sql
SUBSTRING(string, start, [length])
```

### Parameters

| Parameter | Description | Data Type | Required |
| --- | --- | --- | --- |
| _string_ | String value | String | Yes |
| _start_ | Starting date or timestamp | Integer | Yes |
| _length_ | Maximum number of characters to return | Integer | No |

### Example

```sql
SELECT
    SUBSTRING(full_name, 1, 3)
FROM
    rippling.employee.Employee
LIMIT
    5;
```

Source: https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference/substring

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
