on-internet
← Community

Converting datetime to string on Databricks SQL

Stack Overflow ·

I need to join 2 tables of 3, and to do that, I need to convert a datetime to string, but I don't know how, the query: OBS: the code is running, but it just shows null results select distinct aa.column1, aa.column2, cc.column3, from table1 aa left join table3 cc on cc.shift_original_name = aa.shift join table2 bb on aa.column1 between (cc.start_time) and (cc.end_time) the aa.column1 is the datetime, and the cc.start_time/cc.endtime are string. I tried using left join, timestamps, convert, and couldn't do it.

Comments

Sign in or sign up to comment and upvote.

No comments yet.