# Database

- [Google BigQuery](https://til.duyet.net/db/google-bigquery.md)
- [BigQuery Cancel Running Query](https://til.duyet.net/db/google-bigquery/bigquery-cancel-running-query.md)
- [BigQuery - Split string and get the first part](https://til.duyet.net/db/google-bigquery/bigquery-split-string-and-get-the-first-part.md)
- [BigQuery - UNNEST in SELECT](https://til.duyet.net/db/google-bigquery/bigquery-unnest-in-select.md)
- [Bigquery - Sample queries for audiences based](https://til.duyet.net/db/google-bigquery/bigquery-sample-queries-for-audiences-based.md): These queries return the number of users in the audience. If you'd like to get the list of user IDs in the audience instead, then remove the outermost COUNT() function, e.g., COUNT(DISTINCT user\_id) -
- [BigQuery cookbook for Google Analytics Exported Data](https://til.duyet.net/db/google-bigquery/bigquery-cookbook-for-google-analytics-exported-data.md)
- [Apache Hive](https://til.duyet.net/db/apache-hive.md)
- [Hive - SHOW schemas/tables/create](https://til.duyet.net/db/apache-hive/hive-show-schemas-tables-create.md): These commands will help to show list schemas, list tables and create query of tables.
- [AWS Redshift / Postgres](https://til.duyet.net/db/aws-redshift-postgres.md)
- [Amazon Redshift Utilities](https://til.duyet.net/db/aws-redshift-postgres/amazon-redshift-utilities.md)
- [Postgres - Index Summary](https://til.duyet.net/db/aws-redshift-postgres/postgres-index-summary.md)
- [Postgres - List tables](https://til.duyet.net/db/aws-redshift-postgres/postgres-list-tables.md)
- [Redshift - GRANT](https://til.duyet.net/db/aws-redshift-postgres/redshift-grant.md)
- [Redshift - tables and their owners](https://til.duyet.net/db/aws-redshift-postgres/redshift-tables-and-their-owners.md)
- [Redshift - Check the table size](https://til.duyet.net/db/aws-redshift-postgres/redshift-check-the-table-size.md): Redshift or Postgres is ok
- [Presto](https://til.duyet.net/db/presto.md)
- [Aliyun Data Lake Analytics (Presto) - Add partition on non-existing location](https://til.duyet.net/db/presto/aliyun-data-lake-analytics-presto-add-partition-on-non-existing-location.md)
- [AWS Athena - Add Partition](https://til.duyet.net/db/presto/athena-add-partition.md)


---

# 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://til.duyet.net/db.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.
