# initcap

Converts the first letter of each word in a string to uppercase and the rest to lowercase.

## Signature

> INITCAP(col)

## Usage Examples

```sql
select INITCAP('hello world') AS name
FROM ignoreMe
```

| name        |
| ----------- |
| Hello World |

```sql
select INITCAP('APACHE PINOT') AS name
FROM ignoreMe
```

| name         |
| ------------ |
| Apache Pinot |

```sql
select INITCAP('tHiS iS a TeSt') AS name
FROM ignoreMe
```

| name           |
| -------------- |
| This Is A Test |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pinot.apache.org/functions/string/initcap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
