I am looking for help with migrating from Postgres to SnowFlake with Json syntax while building ETL model
select
n.Object->c.name->>'some key in json file' as code
from names n
left join country c
How would you write this in Snowflake dbt ??
-- update: Here i will try to explain better as this involves 3 tables
1- Company 2- Country 3- company rating
to make things easier we can call the columns A,B,C respectively
json column in company table:
{
"AU": {},
"CA": {},
"GB": {
"company rating": "ijbfgp"
},
"US": {},
"ES": {
"company rating": "piayerb",
},
}
Country table:
country name/code column with all countries as TEXT
Company rating table:
technical name column that explains what that rating is as TEXT
What i am trying to do is query sth like in postgres
company.A -> country.B ->> company.country_rating
