mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-21 18:24:20 +01:00
21 lines
313 B
SQL
21 lines
313 B
SQL
-- LIMBO_SKIP: subquery in where not supported
|
|
|
|
|
|
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
|
|
);
|