J
Jack
Hi,
I have a temp table where I need to extract the year part from a date field
and update a Year field(text type) with the extracted date. I am trying to
accomplish this by means of the following query from the sql window:
UPDATE Temp
SET Year = select DatePart("yyyy",[Date]) from Temp;
However, I cannot get this to work because of syntax error. Any help is
appreciated.
Thanks.
I have a temp table where I need to extract the year part from a date field
and update a Year field(text type) with the extracted date. I am trying to
accomplish this by means of the following query from the sql window:
UPDATE Temp
SET Year = select DatePart("yyyy",[Date]) from Temp;
However, I cannot get this to work because of syntax error. Any help is
appreciated.
Thanks.