The following table is the result of a query, which is working fine.
eventID roundID competitionID classID
------- ------- ------------- -------
1 1 1 Mod
2 1 1 Pro
1 2 1 Mod
2 2 1 Pro
1 3 1 Mod
2 3 1 Pro
1 4 1 Mod
2 4 1 Pro
1 5 1 Mod
2 5 1 Pro
Ultimately, I will need to be able to assign event numbers to each
competitionID/roundID/eventID combination, and I don't know whether it
would be best to modify eventID to enter sequential numbers, or to add
another field to the table, (events are numbered from 1 to xx over whole
competition), or to generate event numbers on the fly. The latter would make
it difficult to back reference.
Event schedule is printed out and posted for competitors to see when they
compete.
Problems occur when, prior to competition, last minute alterations are
required (say 5min before first event), that may see deletion of an event
each round, addition of an event each round, or a reorganisation based on
class (classID) which would throw any sequential numbering out the window.
When modifications are made, the schedule is again printed out to keep
competitors up to speed.
Assuming then, that I alter eventID, how would I approach shifting numbers
around?
Ideas on how to approach solving this would be immensely appreciated.
eventID roundID competitionID classID
------- ------- ------------- -------
1 1 1 Mod
2 1 1 Pro
1 2 1 Mod
2 2 1 Pro
1 3 1 Mod
2 3 1 Pro
1 4 1 Mod
2 4 1 Pro
1 5 1 Mod
2 5 1 Pro
Ultimately, I will need to be able to assign event numbers to each
competitionID/roundID/eventID combination, and I don't know whether it
would be best to modify eventID to enter sequential numbers, or to add
another field to the table, (events are numbered from 1 to xx over whole
competition), or to generate event numbers on the fly. The latter would make
it difficult to back reference.
Event schedule is printed out and posted for competitors to see when they
compete.
Problems occur when, prior to competition, last minute alterations are
required (say 5min before first event), that may see deletion of an event
each round, addition of an event each round, or a reorganisation based on
class (classID) which would throw any sequential numbering out the window.
When modifications are made, the schedule is again printed out to keep
competitors up to speed.
Assuming then, that I alter eventID, how would I approach shifting numbers
around?
Ideas on how to approach solving this would be immensely appreciated.
Comment