How to convert date to 'yyyymmdd' format in MV
I got this question from community.incorta.com.
Question:
I want to convert CURRENT_DATE to format 'yyyyMMdd' in the materialized view, I try CONVERT, and FORMAT function but it's not supported in SQL of MW, how I can do that?
Answer:
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 date_format(Current_Date, 'yyyyMMdd') from Audit.date |
Comments
Post a Comment