Skip to content
Advertisement

Tag: snowflake-cloud-data-platform

Conversion of time zone in snowflake sql

I am doing a conversion of timezone from current_timestamp to ‘US/Eastern’ in snowflake view. I was able to create the view but when I preview the data I am getting Timestamp ‘US/Eastern’ is not recognized error. I am converting like below: ((CONVERT_TIMEZONE(current_timestamp, ‘US/Eastern’) – INTERVAL ‘5 HOUR’)) Answer Thus looking at TIMEZONE doc’s LukStorms points, and following the link to

Using REGEXP_SUBSTR to extract website domain

I have a field called Website with examples that look like: I am trying to use REGEXP_SUBSTR to isolate the domain: REGEXP_SUBSTR(“Website”, ‘[^https://]+’) Some of the results are working but others are not, for instance I am expecting cornstalk.com and penny.co but I am not receiving those values: Any help would be appreciated. Answer You can use Details: ^ –

Advertisement