Skip to content
Advertisement

How do I set every row in a column equal to a specific string?

I have some columns I want to set to the string ‘redacted’ because they contain personal information.

Currently I am creating views in snowflake from the original tables via a select statement how can I add a specified string to the particular columns?

original

desired state

current code to materialize views

Advertisement

Answer

I think you want this, just define name as a constant in the view:

(but the code you provided for your view doesn’t match the desired results)

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement