统计类目数据中,有多少二级和三级类目





统计类目数据中,有多少二级和三级类目





003-<img src="/zentao/file-read-330916.png" alt="" />
003+
004-<img src="/zentao/file-read-330917.png" alt="" />
004+
005-<img src="/zentao/file-read-330919.png" alt="" />
005+
006-<img src="/zentao/file-read-330920.png" alt="" />
006+
007-<img src="/zentao/file-read-330921.png" alt="" />
007+
003-<p><img src="/zentao/file-read-330916.png" alt="" /></p>
003+ <p><img src="{330916.png}" alt="" /></p>
004-<p><img src="/zentao/file-read-330917.png" alt="" /></p>
004+ <p><img src="{330917.png}" alt="" /></p>
005-<p><img src="/zentao/file-read-330919.png" alt="" /></p>
005+ <p><img src="{330919.png}" alt="" /></p>
006-<p><img src="/zentao/file-read-330920.png" alt="" /></p>
006+ <p><img src="{330920.png}" alt="" /></p>
007-<p><img src="/zentao/file-read-330921.png" alt="" /></p>
007+ <p><img src="{330921.png}" alt="" /></p>
| 所属迭代 | 技术研发中心 12月运维事项(2023年) |
|---|---|
| 所属模块 | / |
| 相关需求 | 暂无 |
| 指派给 | Closed 于 2024-01-03 11:28:45 |
| 任务类型 | 运维 |
| 任务标签 | 初始 |
| 开发组 | 运营开发组 |
| 任务状态 | 已关闭 |
| 进度 | 100% |
| 优先级 | P2 |
| 关键词 | |
| 抄送给 |
| 由谁创建 | 李荣刚 于 2023-12-08 18:17:46 |
|---|---|
| 由谁完成 | 李荣刚 于 2023-12-08 18:17:52 |
| 由谁取消 | 暂无 |
| 由谁关闭 | 周杰 于 2024-01-03 11:28:45 |
| 关闭原因 | 已完成 |
| 最后编辑 | 周杰 于 2024-01-03 11:28:45 |
| 团队 | 最初预计 | 总计消耗 | 预计剩余 |
|---|
| 最初预计 | 2工时 |
|---|---|
| 总计消耗 | 2工时 |
| 预计剩余 | 0工时 |
| 预计开始 | 2023-12-06 |
| 实际开始 | 2023-12-08 |
| 截止日期 | 2023-12-06 |
--一级
insert into @F_Node(Country,FirstBrowsePathByID)
select Country,BrowsePathByID from E_Amazon_BrowseTree_Node_V2(nolock) where
IsEnabled = 1 and BrowseNodeName in (N'Kategorien', N'Catégories', N'Categorie', N'カテゴリー別', N'CategorÃas', N'Categorías', N'Categories')
--二级
declare @F_Three_Node table (
Country varchar(50), BrowsePathByID varchar(500))
insert into @F_Three_Node(Country,BrowsePathByID)
select n.Country,n.BrowsePathByID from E_Amazon_BrowseTree_Node_V2(nolock) n
inner join @F_Node f on f.Country=n.Country and f.FirstBrowsePathByID=n.ParentBrowsePathByID
where IsEnabled = 1
select count(1) as '二级类目总数' from @F_Three_Node
--三级
select count(distinct n.ID) as '三级类总数' from E_Amazon_BrowseTree_Node_V2(nolock) n
inner join @F_Three_Node f on f.Country=n.Country and f.BrowsePathByID=n.ParentBrowsePathByID
where IsEnabled = 1