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
|
||||
*,
|
||||
case when core_company_name is not null then true else false end as is_deal_in_core,
|
||||
case
|
||||
when hubspot_deal_name is not null then true else false
|
||||
end as is_deal_in_hubspot,
|
||||
case when xero_contact_name is not null then true else false end as is_deal_in_xero
|
||||
from deals_core
|
||||
full outer join deals_hubspot using (id_deal)
|
||||
full outer join deals_xero using (id_deal)
|
||||
case when dc.id_deal is not null then true else false end as is_deal_in_core,
|
||||
case when dh.id_deal is not null then true else false end as is_deal_in_hubspot,
|
||||
case when dx.id_deal is not null then true else false end as is_deal_in_xero
|
||||
from deals_core dc
|
||||
full outer join deals_hubspot dh using (id_deal)
|
||||
full outer join deals_xero dx using (id_deal)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue