Last active
October 13, 2016 10:59
-
-
Save ramiroaznar/78c41af38f9f8432a41446a36ab21179 to your computer and use it in GitHub Desktop.
How to transform two date and hour columns to one timestamp column
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
*, | |
to_timestamp(date_col || ' ' || hour_col, 'DD-MM-YYYY HH24-MI-SS') as date_hour | |
FROM | |
table_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment