I have a CTE table and I'm having this problem below
Msg 241, Level 16, State 1, Line 1
Conversion failed when converting date and/or time from character string.
when I query piece of that particular code it's not working with CAST function, when I try TRY_CAST
it's working, but it's not working in the main CTE select statement
I query varchar field and isdate function side by side, all of them returns 0
I checked all of them one by one and for example this one below it looks date data type to me 2019-06-01 00:00:00.0000000
I haven't seen any funky records like 019-06-01, I can't understand why I can't use it
Any ideas, solutions?