blob: a14f982c06e68d8d6f6c04a74f6a04a15dbd53aa [file] [log] [blame]
select
sum(distinct l_orderkey),
l_linenumber,
count(distinct l_orderkey),
count(*) as total
from
(
select
*
from
lineitem
union all
select
*
from
lineitem
) t1
group by
l_linenumber;