I'm trying to validate a piece of data against a subset of records in a table.
The big picture is that I have a table of competiton entries for multiple competitions. Each entry must have a unique number (to be displayed by the entrant) for obvious reasons. The Entry table includes a field - competitionID - which links the Entry to the Competition.
I can easily use the 'unique' validator to validate against the whole entries table. Any suggestions for how I can validate it, in simple terms, 'unique where competitionID = $x'