I have a table called DATA
I have two column in that table called DATE_TEMP and DATE
DATE_TEMP has multiple rows with dates in either in century mode ie 31/05/2005 or without the century ie 31/05/05.
I want to run a query that will import this data into column DATE
eg
TABLE dbo.DATA before query :
DATE_TEMP DATE
31/05/05
31/05/2005
30/06/07
After query:
DATE_TEMP DATE
31/05/05 2005-05-31
31/05/2005 2005-05-31
30/06/07 2007-06-30
Main Topics
Browse All Topics





by: lsavidgePosted on 2009-10-30 at 03:59:55ID: 25701701
Hi,
Let me get this right...
You have a table called date_temp and in that table there is a SINGLE column containing dates in the form dd/mm/yy and dd/mm/yyyy, so
DATE_TEMP
31/05/05 31/05/2005
or do you have a table called date_temp with 2 columns with a date in each of the forms you mention stored as strings?
Cheers,
Lee