1 Star 1 Fork 1

jinkailun/queries-tpch-dbgen-mysql

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
16.sql 419 Bytes
一键复制 编辑 原始数据 按行查看 历史
select p_brand, p_type, p_size, count(distinct ps_suppkey) as supplier_cnt from PARTSUPP, PART where p_partkey = ps_partkey and p_brand <> 'Brand#34' and p_type not like 'LARGE BRUSHED%' and p_size in (48, 19, 12, 4, 41, 7, 21, 39) and ps_suppkey not in (select s_suppkey from SUPPLIER where s_comment like '%Customer%Complaints%') group by p_brand, p_type, p_size order by supplier_cnt desc, p_brand, p_type, p_size;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jinkailun/queries-tpch-dbgen-mysql.git
git@gitee.com:jinkailun/queries-tpch-dbgen-mysql.git
jinkailun
queries-tpch-dbgen-mysql
queries-tpch-dbgen-mysql
master

搜索帮助