473,471 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

There must be a reasonable solution... just can't think it out.

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.
Jul 17 '05 #1
2 1378
"PhilM" <ph***@nospam.com.am> wrote in message
news:40***********************@news.optusnet.com.a u...
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.


Generally speaking... add another field. The scheduling of an event should
not affect it's identity.

More specifically, and without knowing more detail, I'd suggest that you
generate a schedule and store it separately in its own table(s). Each change
in schedules might or might not require generation of a new schedule. If you
have a need to refer to old schedules, then create schedules as needed but
only use the currently active schedule at any one time. You might need both
abilities: modify existing schedules directly or generate new schedules
based upon curent information.

- Virgil
Jul 17 '05 #2
"PhilM" <ph***@nospam.com.am> wrote in message
news:40***********************@news.optusnet.com.a u...
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.

In addition to Virgil's comments, I would say to not get hung up on
renumbering the competitions every time there is a change (read deletion).
If you think people will be confused by the absence of competition 12 when
it's been cancelled, show it on the schedule as "Cancelled".

George
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

36
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but...
4
by: Alan Gifford | last post by:
I wrote a program to make sure that new would throw a bad_alloc exception if more memory was requested than was available. On my system, new allocates up to 2931 MBs of memory (I don't have that...
6
by: James Egan | last post by:
I've seen some networking toolkits for C++, but was wondering if there were (or plans for) a standard set of networking classes for C++? Also, can someone tell me where I can find a...
44
by: Mohanasundaram | last post by:
int i = 10; int main() { int i = 20; return 0; } Hi All, I want to access the global variable i inside the main. Is there
36
by: No Spam | last post by:
Dear fellow Access 2003 Users, Is there a way to trim all of the fields in a table in one swoop using VBA (preferred) or a query? Right now, I am using an update query and updating EACH field...
43
by: Rob R. Ainscough | last post by:
I realize I'm learning web development and there is a STEEP learning curve, but so far I've had to learn: HTML XML JavaScript ASP.NET using VB.NET ..NET Framework ADO.NET SSL
210
by: Christoph Zwerschke | last post by:
This is probably a FAQ, but I dare to ask it nevertheless since I haven't found a satisfying answer yet: Why isn't there an "ordered dictionary" class at least in the standard list? Time and again...
11
by: pemo | last post by:
If you were to compile/run the code below, and get the result '30', I'd be very interested to know what compiler you're using - and its optimisation settings #include <stdio.h> int test(int...
62
by: Tony Ciconte | last post by:
I have a rather complex commercial Acc2003 application (tab controls, 50K+ lines of VBA code, etc.) that will not run well at all on Windows Vista Ultimate. I have seen posts indicating that...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.