should be it
This commit is contained in:
20
external/duckdb/benchmark/tpch_plan_cost/queries/q04.sql
vendored
Normal file
20
external/duckdb/benchmark/tpch_plan_cost/queries/q04.sql
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
SELECT
|
||||
o_orderpriority,
|
||||
count(*) AS order_count
|
||||
FROM
|
||||
orders
|
||||
WHERE
|
||||
o_orderdate >= CAST('1993-07-01' AS date)
|
||||
AND o_orderdate < CAST('1993-10-01' AS date)
|
||||
AND EXISTS (
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
lineitem
|
||||
WHERE
|
||||
l_orderkey = o_orderkey
|
||||
AND l_commitdate < l_receiptdate)
|
||||
GROUP BY
|
||||
o_orderpriority
|
||||
ORDER BY
|
||||
o_orderpriority;
|
||||
Reference in New Issue
Block a user