> For the complete documentation index, see [llms.txt](https://docs.coffbox.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.coffbox.com/usage-examples/multi-table-data-stats.md).

# Multi-table Data Stats

Perform data analysis by linking multiple tables together.

## Sample Data

![](/files/MQGxLKkbQIEcYwTd4Nal) ![](/files/7wgvzVDcOhJvAH4cQg2d)

## Prompt

> Match the Order IDs in the Returns table with the ones in the Orders table, count how many returns each customer made, and list their ID and name.

## Excel Cursor Response

![](/files/heZ4GteVJ71LUyWHyQln)

## Result

![](/files/jEMZulQywXwsO8yM3CLb)
