I want to insert the following:
Jan = 0.08745
Feb = 0.07605
Mar = 0.08745
Apr = 0.08365
May = 0.09125
Jun = 0.07985
Jul = 0.08365
Aug = 0.08745
Sep = 0.07224
Oct = 0.08745
Nov = 0.08365
Dec = 0.07985
Into a table [Phasing] with the following columns:
[DateKey](YYYYMM, int/not null),
[VersionKey](XXXX, int/not null),
[TypeKey](SmallInt, Not Null),
[Multiplier](0.000, decimal(20,10))
I want to:
UPDATE [Phasing]
SET [Multiplier] = 0.08745
WHERE
[TypeKey] = 1
[VersionKey] = 1234
[DateKey] = 201801
SET [Multiplier] = 0.07605
WHERE
[TypeKey] = 1
[VersionKey] = 1234
[DateKey] = 201802
etc....
I need to do this for 3x versions (1234, 4321, 9876) out of about 15.
I'm currently getting a syntax error on the first where clause:
"Incorrect syntax near 'VersionKey'."