should be it
This commit is contained in:
19
external/duckdb/benchmark/tpch_plan_cost/queries/q13.sql
vendored
Normal file
19
external/duckdb/benchmark/tpch_plan_cost/queries/q13.sql
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
SELECT
|
||||
c_count,
|
||||
count(*) AS custdist
|
||||
FROM (
|
||||
SELECT
|
||||
c_custkey,
|
||||
count(o_orderkey)
|
||||
FROM
|
||||
customer
|
||||
LEFT OUTER JOIN orders ON c_custkey = o_custkey
|
||||
AND o_comment NOT LIKE '%special%requests%'
|
||||
GROUP BY
|
||||
c_custkey) AS c_orders (c_custkey,
|
||||
c_count)
|
||||
GROUP BY
|
||||
c_count
|
||||
ORDER BY
|
||||
custdist DESC,
|
||||
c_count DESC;
|
||||
Reference in New Issue
Block a user