G
Guest
I have a query which generates MatchNumber, based on values in the table
(thanks to Karl Dewey in an earlier post in this forum).
SELECT T.Player, T.MatchDate, T.Position, (SELECT COUNT(*)
FROM Stats T1
WHERE T1.Player = T.Player
AND T1.MatchDate <= T.MatchDate
AND T1.Position <= T.Position) AS MatchNumber
FROM Stats AS T
WHERE T.Player<>"default"
ORDER BY T.Player, T.MatchDate, T.Position;
Now I would like to update Stats.MatchNumber with the generated value, but
of course, this is not an updatable query. How can I generate MatchNumber in
an updatable query? Any assistance would be greatly appreciated.
....Larry
(thanks to Karl Dewey in an earlier post in this forum).
SELECT T.Player, T.MatchDate, T.Position, (SELECT COUNT(*)
FROM Stats T1
WHERE T1.Player = T.Player
AND T1.MatchDate <= T.MatchDate
AND T1.Position <= T.Position) AS MatchNumber
FROM Stats AS T
WHERE T.Player<>"default"
ORDER BY T.Player, T.MatchDate, T.Position;
Now I would like to update Stats.MatchNumber with the generated value, but
of course, this is not an updatable query. How can I generate MatchNumber in
an updatable query? Any assistance would be greatly appreciated.
....Larry