Relative Content

Tag Archive for sqlmysql

Active flag column with concurrent updates

So I am dealing with a project where we have entities that have a name, and while multiple entities can have the same name only one of those entities can be active at a time. Therefore for every update/insert if the new/updated entity has active = TRUE, all other entries with that name have to have active = FALSE.