【发布时间】:2021-05-18 23:26:44
【问题描述】:
我有两张表,其中包含下一列:
Tableproductscontains
- product_id [数字]
- 提供者 [数字]
表 orders 包含
- order_id [数字]
- cart_items(由多个 product_id 组成)例如: [{"product_id":304,"amount":250,"currency_rate":"1.28"},{"product_id":306,"amount":10,"currency_rate":"1.05"}]
问题:如何在 Google Big Query 中查询按 product_id 分组的某个提供商的已售 product_id(在 cart_items 中提到)?
【问题讨论】:
-
cart_items的数据类型是什么?
标签: sql google-bigquery