fixed booleans
This commit is contained in:
parent
6516a0fdc6
commit
0aeb558a9b
1 changed files with 6 additions and 8 deletions
|
|
@ -78,11 +78,9 @@ with
|
||||||
|
|
||||||
select
|
select
|
||||||
*,
|
*,
|
||||||
case when core_company_name is not null then true else false end as is_deal_in_core,
|
case when dc.id_deal is not null then true else false end as is_deal_in_core,
|
||||||
case
|
case when dh.id_deal is not null then true else false end as is_deal_in_hubspot,
|
||||||
when hubspot_deal_name is not null then true else false
|
case when dx.id_deal is not null then true else false end as is_deal_in_xero
|
||||||
end as is_deal_in_hubspot,
|
from deals_core dc
|
||||||
case when xero_contact_name is not null then true else false end as is_deal_in_xero
|
full outer join deals_hubspot dh using (id_deal)
|
||||||
from deals_core
|
full outer join deals_xero dx using (id_deal)
|
||||||
full outer join deals_hubspot using (id_deal)
|
|
||||||
full outer join deals_xero using (id_deal)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue