# Column Alias

Alias is a command that you can assign temporary name to the column \
\
**Illustrates the syntax of using a column alias:**

```sql
Select first_name, last_name as surname from customer
```

The **`AS`** keyword is optional so you can omit it like this

```sql
Select first_name, last_name surname from customer
```

In case that you would like the temporary name to have the space you can use double quoete

**example**

```sql
Select first_name || ' ' || last_name surname as "full name" from customer
```


---

# 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://dev7days.gitbook.io/dev7days/postgres/column-alias.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.
