Hi I have a date format in one table in Text 'YYYY/MM'. example 2018/01, 2020/08 etc. I need to join it with another table where the date is in Number type( and DATETIME20 format attached it it) and convert it to month and compare. Is there any way to do it in PROC SQL as the rest of my query is in PROC SQL?
eg. Table 1: Month= 2018/01; Table 2: Date =20.01.2018 10:48:17 . They should be joined in the PROC SQL query. I would also like to calculate difference in Months between these two dates.
Thank you in advance.