G
Guest
hi all,
This is how i would say it for a single record
UPDATE MyTable
SET MAX(fielda) + 1
WHERE RecordID = RecordB
However, I don't know how to say it to all the RecordIDs in the table:
e.g
RecordID - fielda
RecordA - 1
RecordA - 1
RecordA - 1
RecordB - null
RecordC - null
RecordC - null
RecordC - null
i need fielda for RecordB and RecordC to equal 2 and 3 respectively.
Please advise.
thanks,
ari
thanks,
ari
This is how i would say it for a single record
UPDATE MyTable
SET MAX(fielda) + 1
WHERE RecordID = RecordB
However, I don't know how to say it to all the RecordIDs in the table:
e.g
RecordID - fielda
RecordA - 1
RecordA - 1
RecordA - 1
RecordB - null
RecordC - null
RecordC - null
RecordC - null
i need fielda for RecordB and RecordC to equal 2 and 3 respectively.
Please advise.
thanks,
ari
thanks,
ari