> ## Documentation Index
> Fetch the complete documentation index at: https://docs.queryful.app/llms.txt
> Use this file to discover all available pages before exploring further.

# LIMIT

> Cap the number of rows a report returns.

`LIMIT` caps how many rows the report returns. Pair it with [ORDER BY](https://docs.queryful.app/queryfulql/syntax/order-by.md), which decides which rows are kept.

```sql theme={null}
FROM sales
  SHOW net_sales
  GROUP BY product_title
  ORDER BY net_sales DESC
  LIMIT 10
```

This keeps the ten products with the highest net sales.

`LIMIT` caps the rows in the table. To cap the items a chart plots but keep every row in the table, use `MAX` on [VISUALIZE](https://docs.queryful.app/queryfulql/syntax/visualize.md). To keep the top values of one dimension within another, use [TOP in GROUP BY](https://docs.queryful.app/queryfulql/syntax/group-by.md#top-values).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.