I know I have the syntax totally wrong.
I want to do something like:
UPDATE Flag = 1
FROM Dataset WHERE
("Label" = 'XYZ' AND
COUNT ("Type" = 'A' OR
"Type" = 'B' OR
"Type" = 'C' OR) >= 2)
What I want, conceptually:
1. Select all records with Label = XYZ.
2. Count how many of those selected records have Type = A or B or C.
3. If that is 2 or more, update the Flag field with a '1' for all the records where Label = XYZ.
I want to do something like:
UPDATE Flag = 1
FROM Dataset WHERE
("Label" = 'XYZ' AND
COUNT ("Type" = 'A' OR
"Type" = 'B' OR
"Type" = 'C' OR) >= 2)
What I want, conceptually:
1. Select all records with Label = XYZ.
2. Count how many of those selected records have Type = A or B or C.
3. If that is 2 or more, update the Flag field with a '1' for all the records where Label = XYZ.