Skip to content
Advertisement

SQL Server Convert Varchar to Datetime and Find Max Value

I try to find max date from a DATE column, the column format is YYYY-MM and its of type varchar.

I tried with the following SQL code:

Advertisement

Answer

You can try the below way –

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement