Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Mar 30, 2023
1 parent 3ed3549 commit 638cb31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions benchmarks/queries/q8.sql
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
select
o_year,
sum(case
cast(cast(sum(case
when nation = 'BRAZIL' then volume
else 0
end) / sum(volume) as mkt_share
end) as decimal(12,2)) / cast(sum(volume) as decimal(12,2)) as decimal(15,2)) as mkt_share
from
(
select
extract(year from o_orderdate) as o_year,
cast(l_extendedprice as decimal(12,2)) * (1 - l_discount) as volume,
l_extendedprice * (1 - l_discount) as volume,
n2.n_name as nation
from
part,
Expand Down

0 comments on commit 638cb31

Please sign in to comment.