# Tags

This table stores all the tags of all the posts published.

#### Columns

| Name         | Description                                                                                                                                                 |
| ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `comment_id` | a foreign key containing the ID of the post in the Comments table. (see [TxComments](https://docs.hivesql.io/technical-informations/operations/txcomments)) |
| `tag`        | one of the tags used to publish the post                                                                                                                    |

#### Query example

To retrieve all posts related to a specific tag, for example *cats*, you can issue the following SQL query:

```
SELECT
    Comments.author, 
    Comments.permlink
FROM
    Tags
    INNER JOIN Comments ON Tags.comment_id = Comments.ID
WHERE
    Tags.tag = 'cats'
```


---

# 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.hivesql.io/technical-informations/state-tables/tags.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.
