Files
turso/perf/tpc-h/queries/17.sql
2025-10-27 16:23:38 +02:00

21 lines
331 B
SQL

-- LIMBO_SKIP: query 17 is slow as hell in both Turso and Sqlite
select
sum(l_extendedprice) / 7.0 as avg_yearly
from
lineitem,
part
where
p_partkey = l_partkey
and p_brand = 'Brand#52'
and p_container = 'LG CAN'
and l_quantity < (
select
0.2 * avg(l_quantity)
from
lineitem
where
l_partkey = p_partkey
);