sql - Datetime and Integer functions on Varchar fields -
we refactoring weird system within backend, values should stored number , date columns, propperly designed constraints, stored varchar (using ui validation). thing is, while new system our ones must start run so:
is possible manipulate varchar columns integer say lower or greater comparisons and, given dates stored same format dd/mm/yyyy possible treat varchar column date , use functions as: in between?
would work:
select column1, column2 table convert(datetime, datecolumn, 3) between @startdate , @enddate
Comments
Post a Comment