3
I need to fix a table that was built wrong, the field that would store the date was created as varchar
.
With this structure I can not select a certain period, because varchar
are ordered from left to right in alphanumeric order.
So selecting 30/05/2016 to 10/062016 will bring an empty result.
The question is on how to change the type of this field to date, because when I try to change the error of incorrect value, by the fact of the data that are already in the table.
How to do without losing the information that is contained in the table?
Do you have the option to create a new field in the database to convert that field to Date? Or just do filter in Where?
– Marco Souza