Added count distinct
This commit is contained in:
parent
d08adfd2c0
commit
e2fb73d558
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ with
|
|||
check_in_cover_purchased as (
|
||||
select
|
||||
cic.id_accommodation,
|
||||
count(cic.id_verification_request) as check_in_cover_purchased
|
||||
count(distinct cic.id_verification_request) as check_in_cover_purchased
|
||||
from int_core__vr_check_in_cover cic
|
||||
where cover_was_purchased is true
|
||||
group by cic.id_accommodation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue