leading-project/dw/dwd/dwd_innoveco_order_item_d.sql

13 lines
423 B
MySQL
Raw Normal View History

2024-07-21 22:06:45 +08:00
select
itemId
, orderNo
, categoryId
, json_unquote(json_extract(categoryTitle, '$[0]')) categoryLevel1
, json_unquote(json_extract(categoryTitle, '$[1]')) categoryLevel2
, goodsId
, goodsTitle
, salePrice
, skuId
, skuNum
from ods_weimob_order_listsearch_orderinfo_items_d b
where orderNo in (select orderNo from ods_weimob_order_listsearch_orderinfo_d where isDeleted = 0)