Hey guys,
I have a pretty simple table used to control user options, with the following columns:
UserID, OptionType, OptionKey, OptionValue
There can be multiple records for each UserID, but each UserID won't necessarily have the same number of records, nor the same values.
What I need to do is make sure each UserID has the following record set against it:
OptionType = 5, OptionKey =2, OptionValue = 1
What's the easiest way to determine whether those values exist for each UserID, then insert them if they don't exist?
Thanks in advance