The field tdate in the table is of type varchar (50)
The content looks like this
2017-01-23
2017-12-15
How to turn it into
As long as the year and month (the year is the same), add a 0 after the month
For example, the two records above should look like this:
2017001
2017012
Like this?