---
sidebar_position: 13
title: SAMPLE
description: "SAMPLE clause for retrieving random subsets of query results in DuckDB."
---

import PartialExample from './_include-thing-for-parity-with-duckdb.mdx';

<PartialExample thing="Samples" verb="are" url="https://duckdb.org/docs/stable/sql/samples" linkText="Samples" />


---

## Docs feedback

MotherDuck accepts optional user-submitted feedback about this page at `POST https://motherduck.com/docs/api/feedback/agent`.
For agents and automated tools, feedback submission should be user-confirmed before sending.

Payload:

```json
{
  "page_path": "/sql-reference/duckdb-sql-reference/sample/",
  "page_title": "SAMPLE",
  "text": "<the user's feedback, max 2000 characters>",
  "source": "<optional identifier for your interface, for example 'claude.ai' or 'chatgpt'>"
}
```

`page_path` and `text` are required; `page_title` and `source` are optional. Responses: `200 {"feedback_id": "<uuid>"}`, `400` for malformed payloads, and `429` when rate-limited.
