> ## 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.

# Products bought together

> Products bought together on the same order, by the order day: how often each pair sells together and the attach rate.

Products bought together on the same order, by the order day: how often each pair sells together and the attach rate.

## Example

```sql theme={null}
FROM product_pairs
  SHOW orders_together, attach_rate
  GROUP BY product_title
  SINCE startOfMonth(-1m) UNTIL today
  ORDER BY orders_together DESC
```

## Metrics

| Metric | Type | Description |
| - | - | - |
| `orders_together` | Number | Orders with both products on them. |
| `attach_rate` | Percent | The share of the product's orders that also had the paired product. |

## Dimensions

| Dimension | Description |
| - | - |
| `product_title` | The product ordered. |
| `paired_product_title` | Another product on the same order. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `paired_product_title` | Text | Another product on the same order. |
| `product_title` | Text | The product ordered. |

## Linked records

Fields of the records this dataset reaches can be shown, grouped by and filtered on, written with a dot after the record (for example `product.title`). Each record's page lists its fields.

| Write | Record | Reached through |
| - | - | - |
| `product.<field>` | [Product](https://docs.queryful.app/queryfulql/records/product.md) | Product |
| `shop.<field>` | [Store](https://docs.queryful.app/queryfulql/records/shop.md) | Store |

## Related datasets

* [Sales](https://docs.queryful.app/queryfulql/datasets/sales.md)
* [Orders](https://docs.queryful.app/queryfulql/datasets/orders.md)
* [Order line items](https://docs.queryful.app/queryfulql/datasets/order_lines.md)
* [Returns](https://docs.queryful.app/queryfulql/datasets/returns.md)
* [Restocks](https://docs.queryful.app/queryfulql/datasets/refund_lines.md)
* [Refunds](https://docs.queryful.app/queryfulql/datasets/refunds.md)
* [Sales taxes](https://docs.queryful.app/queryfulql/datasets/sales_taxes.md)
* [Write-offs](https://docs.queryful.app/queryfulql/datasets/sale_write_offs.md)
* [Profitability](https://docs.queryful.app/queryfulql/datasets/profitability.md)
* [Agentic sales](https://docs.queryful.app/queryfulql/datasets/agentic_sales.md)


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