JohnnyLong
Programmer
Is this possible?
I'm using SQL7.
I have a table like this:
ID WeekCount WeekCommencing
001 1 28/02/2005
002 2 07/03/2005
I want to replace WeekCommencing 28/02/2005 with WeekCommencing 07/03/2005.
I came up with this pseudo sql code :
UPDATE Whereabouts
SET (WeekCommencing (WHERE WeekCount = 1)) = (WeekCommencing (WHERE WeekCount = 2))
I know this is wrong, but can it be done?
John
I'm using SQL7.
I have a table like this:
ID WeekCount WeekCommencing
001 1 28/02/2005
002 2 07/03/2005
I want to replace WeekCommencing 28/02/2005 with WeekCommencing 07/03/2005.
I came up with this pseudo sql code :
UPDATE Whereabouts
SET (WeekCommencing (WHERE WeekCount = 1)) = (WeekCommencing (WHERE WeekCount = 2))
I know this is wrong, but can it be done?
John