MattioMatt
Registered User.
- Local time
- Today, 05:58
- Joined
- Apr 25, 2017
- Messages
- 99
Hello all,
I have a single table to which I'd like to update certain records.
I'd like to update certain fields for these certain records.
For example I'd like to update the 'DataClassification' for Record ID 001 to "Public" but then I'd like to update the DataClassification for Record ID 002 to "Internal". I'd then like to update the 'Status' of Record ID 003 to "Live" but not update the Dataclassification for Record ID 003. Is it possible to do this in one query? I suspect it is by adding the fields then using the record ID's as the criteria.
Ideally what I'd like to do is to have a second table where I could list all of these 'exceptions' and then have the update query work from there.
For example:
RecordID | FieldToChange | UpdateTo
---------------------------------------
001 | DataClassification | Public
002 | DataClassification | Internal
003 | Status | Live
I'm not currently understanding how to do that or if it is even possible?
I have a single table to which I'd like to update certain records.
I'd like to update certain fields for these certain records.
For example I'd like to update the 'DataClassification' for Record ID 001 to "Public" but then I'd like to update the DataClassification for Record ID 002 to "Internal". I'd then like to update the 'Status' of Record ID 003 to "Live" but not update the Dataclassification for Record ID 003. Is it possible to do this in one query? I suspect it is by adding the fields then using the record ID's as the criteria.
Ideally what I'd like to do is to have a second table where I could list all of these 'exceptions' and then have the update query work from there.
For example:
RecordID | FieldToChange | UpdateTo
---------------------------------------
001 | DataClassification | Public
002 | DataClassification | Internal
003 | Status | Live
I'm not currently understanding how to do that or if it is even possible?