CREATE FUNCTION UTC_TO_LOC(x DATETIME) RETURN DATETIME
AS BEGIN
RETURN (SELECT timestampadd('mi',base_utc_offset,x) from dwmetadata.timezone_info where year_=1956);
END ;
why the above statement doesn't work in vertica ? how can vertica execute sql in sql function?
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.