Sign in
apache
/
drill-test-framework
/
9a5d7ecf7f32f0e95c0ea874e75d785fdee9e51d
/
.
/
framework
/
resources
/
Functional
/
aggregates
/
aggregation
/
sanity
/
q7.sql
blob: e2ee08f35f39a4aea77b70c386ebbd91595932dd [
file
] [
log
] [
blame
]
-- distinct in subquery
select
count
(
distinct
a1
),
sum
(
a1
)
from
(
select
distinct
a1
,
b1
,
c1
from
t1
)
as
sq
group
by
c1
order
by
c1
;