42.Merchant -为一个购买订单做准备

商人需要留意重要的客户,特别的促销活动,受欢迎的产品,并确保订单处理。让我们介绍其中的一些场景和学习如何使用N1QL查询相关数据。

派遣团队已告知订单已放置,愿审核采购订单。

SELECT purchases, product, customer 
FROM purchases USE KEYS "purchase0" UNNEST purchases.lineItems AS items 
JOIN product ON KEYS items.product
JOIN customer ON KEYS purchases.customerId

结果:

Last updated

Was this helpful?