github.com/matrixorigin/matrixone@v1.2.0/test/distributed/cases/benchmark/tpch/03_QUERIES/q14.sql (about) 1 use tpch; 2 select 3 100.00 * sum(case 4 when p_type like 'PROMO%' 5 then l_extendedprice * (1 - l_discount) 6 else 0 7 end) / sum(l_extendedprice * (1 - l_discount)) as promo_revenue 8 from 9 lineitem, 10 part 11 where 12 l_partkey = p_partkey 13 and l_shipdate >= date '1996-04-01' 14 and l_shipdate < date '1996-04-01' + interval '1' month;